October 2018
Intermediate to advanced
500 pages
12h 40m
English
Uniforms are input variables that are available to both the vertex shader and the fragment shader. Unlike attributes, uniforms are constant during a rendering cycle. For example, the position of a light is often modeled as a uniform. Uniforms are effectively global variables that you set before executing your shader program.