GLSL (OpenGL Shading Language)
Modified 2025-12-03
The language shaders are written in, with built-in types for vectors
and matrices.
Multiplying a vec with a scalar
vec4 a = vec4(1, 2, 3, 4);
vec4 b = a * 2.0; //b is now vec4(2, 4, 6, 8);