Hi Cedric,
I am not very confortable with the uniform because it
could not work if you use a more complex shader, or you will have to
take care about the shader you use and reimport the uniform in your
shader to manage this case, it's maybe not a problem but you are right
it's probably faster than re culling.
Once you move to completely shader-based rendering, you need to keep an
firm grip on your shaders in order to control everything :-)
For example, if some other node somewhere is using another shader that
is overriding your own shaders it will give wrong results. So yes, you
have to know what is going on with shaders everywhere in your graph.
It's just part of the game. :-)
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org