Vizard 7 » Command Index » Vizard modules » viz » <viz>.addUniformBool
7.7

<viz>.addUniformBool

Create a boolean shader uniform

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

Remarks

This command will create a boolean shader uniform, initialized to the specified values. The returned object can be applied to any node3d object.

Return Value

<uniform> object

See also

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