<viz>.addUniformFloat

Create a floating point shader uniform

 

<viz>.addUniformFloat(
    name    
    value    

)

 

name

Name of shader uniform


value

A single float object or a list of 1-4 float objects.


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