On 8/14/07, Amal <[EMAIL PROTECTED]> wrote: > > > I want to find them in a node which is attached to the scen graph. I need > them in a Shader code for calculating the depth.
OpenGL provides built in uniform gl_ModelViewMatrix which is directly available from in the shader. You'll need to compute the near/far from this yourself. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

