WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   Possible to Unapply a shader? (https://forum.worldviz.com/showthread.php?t=4721)

shivanangel 08-14-2013 06:12 PM

Possible to Unapply a shader?
 
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 .texture removes it )

~George

farshizzo 08-15-2013 09:18 AM

You can clear a shader from a specific node using:
Code:

node.clearAttribute(viz.ATTR_SHADER)
You can also clear a specific shader from all nodes it is applied to using:
Code:

shader.unapply()


All times are GMT -7. The time now is 10:05 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC