Vizard 7 » Command Index » Vizard objects » shader » <shader>.attach
7.6

<shader>.attach

Attach a uniform to the shader

<shader>.attach(  
uniform  
)  
uniform
A uniform object

Remarks

This command will attach a uniform to the shader. When a shader is applied to a node, all the attached uniforms will also be applied.

Attaching a uniform after a shader has been applied to a node will NOT affect the node.

Return Value

None