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

Rômulo Cerqueira romulogcerqueira at gmail.com
Wed Dec 28 19:14:49 PST 2016


Hi Sebastian,


> 
> There is no direct way. If you need shaders with and without texturing 
> you should bind different programs to the affected geometries. 
> 


I think my problem is a little bit different. I will receive the final scene with or without textures and process it properly. I won't participate in the scene development.

... 

Thank you!

Cheers,
Rômulo

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








More information about the osg-users mailing list