Properties
.boundary : number
Used to build the uniform buffer according to the STD140 layout. Derived uniforms will set this property to a data type specific value.
.itemSize : number
The item size. Derived uniforms will set this property to a data type specific value.
.name : string
The uniform's name.
.offset : number
This property is set by UniformsGroup and marks the start position in the uniform buffer.
Methods
.clone() : Uniform
Returns a new uniform with copied values from this instance.
If the value has a clone() method, the value is cloned as well.
- Returns: A clone of this instance.
.getValue() : any
Returns the uniform's value.
- Returns: The value.
.setValue( value : any )
Sets the uniform's value.
| value |
The value to set. |