The OpenGL Shading Language (OpenGL Programming)

This section provides an overview of the shading language used within OpenGL, commonly called the GLSL. GLSL shares many traits with C++ and Java, and is used for authoring both vertex and fragment shaders, although certain features are only available for one type of shader. We will first describe GLSL’s requirements, types, and other language constructs that are shared between vertex and fragment shaders, and then discuss the features unique to each type of shader.

Next post:

Previous post: