Hi,

is there a way to check if a texture (as uniform sampler2D) is valid in 
fragment shader?

This is my current code:


Code:

if (textureSize(myTexture, 0).x > 1) {
// do something with the texture
}
else {
// process without texture information
}



... 

Thank you in advance!

Cheers,
Rômulo

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to