Hi Jose, Are you applying the fog in your shader? Remember that the GLSL spec states that Fog is not applied once a fragment shader has been supplied. Your shader replaces the fixed function shader that applied the fog.
Check out: http://www.idevgames.com/forum/showthread.php?t=12436 for a discussion. The fog equation is easy to understand. Check out chapter 6, Blending etc., in the Red Book if you have problems understanding the code in the above link. -Keith On Tue, 13 Jul 2010, Jose Rincon wrote:
Hi, I have a scene with weather(in this case with fog) but in the moment I apply a light shader, the weather dissapears. Is there a possibility of having the weather I had before? Thank you! Cheers, Jose ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29962#29962 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

