The Book of Shaders by Patricio Gonzalez Vivo


Const

Constant qualifier

Example

const float PI = 3.14159265359;

Description

const qualifier can be applied to the declaration of any variable to specify that its value will not be changed.

See also

attribute, uniform, varying