uniform - firtoz/react-three-renderer GitHub Wiki
Wiki » Internal Components » Materials » shaderMaterial » uniforms » uniform
uniform
A single uniform value for a shader material.
See THREE.ShaderMaterial.
Any modifications to uniforms will result in the recompilation of the shader.
Attributes
type
string required: See THREE.ShaderMaterial for information about uniform types.
name
string required: The name of the uniform. This will act as the key in the uniforms dictionary.
value
any: See THREE.ShaderMaterial for information about uniform values.
Default: null
===
| View Source |
|---|