◄ Wiki / Graphics
GLSL
GLSL is the OpenGL Shading Language, a C-like language for writing GPU shader programs.
Shaders — vertex, fragment, geometry, and more — are written in GLSL and then compiled for the GPU. In modern pipelines GLSL source is typically compiled down to SPIR-V, a portable binary intermediate form that Vulkan-class drivers consume. It is the human-readable starting point for describing how geometry and pixels are computed.
See also
- glslcglslc is Google's command-line compiler that turns GLSL shader source into SPIR-V binaries.
- GLSL.std.450GLSL.std.450 is the standard library of built-in math functions available to shaders in the SPIR-V format.
- fragment shaderA fragment shader is a small program the GPU runs for every fragment to decide its final color.