The WebGLShader is part of the WebGL API and can either be a vertex or a fragment shader. A WebGLProgram requires both types of shaders.

Documentation WebGLShader by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See: