[osg-users] Check if sampler2D is valid in fragment shader

Rômulo Cerqueira romulogcerqueira at gmail.com
Thu Dec 29 08:07:04 PST 2016


Hi Christian,


> You could traverse the scene graph and check the state sets to see if they bind a texture to a texture unit. 
> 
> Then depending on these findings, choose the correct shader code. 


I appreciated it. Can you give me some example?
... 

Thank you!

Cheers,
Rômulo

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=69799#69799








More information about the osg-users mailing list