Vizard 7 » Command Index » Vizard modules » viz » <viz>.addUniformInt
7.6

<viz>.addUniformInt

Create an integer shader uniform

<viz>.addUniformInt(  
name  
value  
arraySize = 1  
)  
name
Name of shader uniform
value
A single int object or a list of 1-4 int objects.
arraySize = 1
Specifies the size of the array, if creating a uniform array.

Remarks

This command will create an integer 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>.addShader
<node3d>.apply