Hello. Thank you for your answer, but there is a problem. In the first pass algorithm, the value osg_ViewMatrixInverse is wrong. It corresponds to the main camera instead of the RTT camera i use.
The variable gl_ModelViewMatrix is correct though. Any idea of what i can do to pass the correct value to osg_ViewMatrixInverse ? I use glsl 1.2. thank you for your time. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

