thebookofshaders/glossary/uniform
2020-07-30 16:34:42 +07:00
..
README-vi.md Translate the glossary section 2020-07-30 16:34:42 +07:00
README.md Update uniform and varying glossary docs 2017-12-20 20:34:26 +00:00

Uniform

Uniform variable qualifier.

Example

uniform vec4 direction;

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.

See Also

attribute, const, varying, Chapter 03: Uniforms