Open topic with navigation
<viz>.addUniformMatrix
Create a matrix shader uniform
<viz>.addUniformMatrix( |
|
name |
value |
arraySize = 1 |
) |
|
name
Name of shader uniform
value
A list of floats containing the initial matrix values. The length of the list controls what type of matrix uniform is created:
arraySize = 1
Specifies the size of the array, if creating a uniform array.
Remarks
This command will create a matrix shader uniform, initialized to the specified values. The returned object can be applied to any node3d object.
Return Value
<uniform> object
See also