What is a Uniform?
What is a Uniform?
A uniform is a GLSL global variable declared with the "uniform" variable name. These act as parameters that the user of a shader program can pass to the shader program. They are stored in a program object.
Uniforms are so named because they do not change from one execution of a shader program to the next within a particular rendering call. This makes them unlike shader stage inputs and outputs, which are often different for each invocation of a program stage.