thebookofshaders/glossary/const.md

13 lines
339 B
Markdown
Raw Normal View History

2015-06-12 16:02:51 +00:00
## Const
Constant qualifier
### Example
```glsl
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](index.html#attribute.md), [uniform](index.html#uniform.md), [varying](index.html#varying.md)