Hi John,
I have classes that I instantiate that use GLSL, but are not
automatically enabled on the scene graph.
Is there a way to use RTT and PIXEL_BUFFER setup that won't break
osg::Fog? What I mean is, if I don't instantiate the GLSL objects, will
osg::Fog remain intact in this type of setup?
osg::Fog uses the fixed pipeline fog functionality. If the nodes below
where you use osg::Fog have no shaders attached/enabled, osg::Fog will
work just fine. If you have shaders, they must implement fog themselves,
which is not difficult Post if you need pointers (I did that recently
myself) or get 3DLabs' ShaderGen program from http://www.mew.cx/glsl and
generate shaders that replicate glFog. ShaderGen is a neat tool that can
generate a shader set that replicates the full fixed pipeline
functionality (if you need that).
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