A Shader is a program designed to run on some stage of a graphics processor. Its purpose is to execute one of the programmable stages of the rendering pipeline.
In OpenGL, shaders are written in GLSL, and are of the following types:
- Vertex Shaders (GL ≥ 2.0)
- Tessellation Control Shaders (GL ≥ 4.0)
- Tessellation Evaluation Shaders (GL ≥ 4.0)
- Geometry Shaders (GL ≥ 3.2)
- Fragment Shaders (GL ≥ 2.0)
Information is passed between the different shader stages via shader variables.
|This article is a stub. You can help the OpenGL Wiki by expanding it.|