PDA

View Full Version : Possible to Unapply a shader?


shivanangel
08-14-2013, 06:12 PM
Is it possible to unapply a shader after one has been bound to the object?

I don't see anything in the documentation about it, and passing in viz.OFF or similar values doesn't work ( kinda like how viz.OFF with <node3d>.texture removes it )

~George

farshizzo
08-15-2013, 09:18 AM
You can clear a shader from a specific node using:
node.clearAttribute(viz.ATTR_SHADER)

You can also clear a specific shader from all nodes it is applied to using:
shader.unapply()