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

Christian Buchner christian.buchner at gmail.com
Thu Dec 29 02:32:58 PST 2016


> I will receive the final scene with or without textures

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.

Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20161229/86385d4e/attachment-0003.htm>


More information about the osg-users mailing list