Name | Type | Attributes | Description |
---|---|---|---|
uniforms |
object | Buffer |
<optional> |
Custom uniforms to use to augment the built-in ones. Or a pixi buffer. |
isStatic |
boolean |
<optional> |
Uniforms wont be changed after creation. |
isUbo |
boolean |
<optional> |
If true, will treat this uniform group as a uniform buffer object. |
Members
Its a group and not a single uniforms.
- Default Value:
- true
Flag for if uniforms wont be changed after creation.
Flags whether this group is treated like a uniform buffer object.
Uniform values
Dirty version
unique id
Methods
PIXI.UniformGroup.uboFrom (uniforms, _static) PIXI.UniformGroup static
A short hand function for creating a static UBO UniformGroup.
Name | Type | Attributes | Description |
---|---|---|---|
uniforms |
Dict<any> | PIXI.Buffer |
the ubo item |
|
_static |
boolean |
<optional> |
should this be updated each time it is used? defaults to true here! |
Returns:
Type | Description |
---|---|
PIXI.UniformGroup |