You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
thebookofshaders/glossary/uniform/README.md

16 lines
491 B
Markdown

10 years ago
## Uniform
Uniform variable qualifier.
10 years ago
### Example
```glsl
uniform vec4 direction;
```
9 years ago
### Description
```uniform``` variables contain read-only data shared from WebGL/OpenGL environment to a vertex or fragment shader.
The value is per primitive, so is useful for variables which remain constant along a primitive, frame or scene.
9 years ago
### See Also
[attribute](/glossary/?search=attribute), [const](/glossary/?search=const), [varying](/glossary/?search=varying), [Chapter 03: Uniforms](/03/)