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
Uniforms wont be changed after creation
- Default Value:
- --
Flags whether this group is treated like a uniform buffer object.
- Default Value:
- --
uniform values
dirty version
- Default Value:
- 0
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 |