attachShader method
The WebGLRenderingContext.attachShader() method of the WebGL API attaches either a fragment or vertex WebGLShader to a WebGLProgram.
Implementation
external void attachShader(
  WebGLProgram program,
  WebGLShader shader,
);The WebGLRenderingContext.attachShader() method of the WebGL API attaches either a fragment or vertex WebGLShader to a WebGLProgram.
external void attachShader(
  WebGLProgram program,
  WebGLShader shader,
);