WebGL GLSL

In general, WebGL rendering requires the user of shader programs. A shader program (or "shader") is written using the OpenGL Shading Language (GLSL), which is a high-level language based on the syntax of the C programming language. GLSL gives developers deep access to the graphics pipeline without having to use assembly language or hardware-specific languages. Shaders must be loaded with a source string (shaderSource), compiled (compileShader), and attached to a program (attachShader) which must be linked (linkProgram) and then used (useProgram).

Note  WebGL and GLSL are not supported in Internet Explorer 10 and earlier.
 

GLSL components supported in Internet Explorer 11 are as follows.

In this section

TopicDescription

vertexAttrib commands

The vertexAttrib family of commands set a default vertex element that will be used for all attribute input when a vertex attribute is disabled.

GLSL errors

This topic lists errors that a WebGL shader can return.

 

Related topics

WebGL 1.0 API Quick Reference Card
OpenGL / OpenGL ES Reference Compiler
WebGL API for Internet Explorer
GLSL errors

 

 

Show: