Vizard 8 » Command Index » Vizard modules » viz » <viz>.addUniformMatrix
8.0

<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:

Length

Type

4

mat2

9

mat3

16

mat4

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

<viz>.addUniformBool
<viz>.addUniformFloat
<viz>.addUniformInt
<viz>.addShader
<node3d>.apply