Great advice. Do you mean than I can I retrieve the modified texture through a 
getUniform call after the update() call ?

In fact I'll have about 200 objects that I need to know if each of them have 
been lit or not.

Do you think I can do a 15*15 texture and associate one pixel with each object 
? Thus how can I retrieve a custom value in pixel shader that we'll indicate me 
which is the index of the current object on which the shader is applied to ?


Thanks again for your help.

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





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

Reply via email to