getFragDataLocation method

GLint getFragDataLocation(
  1. WebGLProgram program,
  2. String name
)

The WebGL2RenderingContext.getFragDataLocation() method of the WebGL 2 API returns the binding of color numbers to user-defined varying out variables.

Implementation

external GLint getFragDataLocation(
  WebGLProgram program,
  String name,
);