Vizard 8 » Command Index » Vizard modules » viz » <viz>.addUniformFloat
8.1

<viz>.addUniformFloat

Create a floating point shader uniform

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

Remarks

This command will create a floating 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>.addUniformInt
<viz>.addShader
<node3d>.apply