Hi Filip, OpenGL itself provides the modelview matrix as a built in unifiorm:
gl_ModelViewMatrix By default the OSG adds its own view matrix uniforms (the code is in SceneView): osg_ViewMatrix osg_ViewMatrixInverse
From these you can compute vairous details about the camera.
Robert. On 7/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
I'm trying to implement a shader that requires the camera position as a uniform. I'm failing to see how to get this information in my updateCallback since both getEyePos and getViewPos are only implemented for CullVisitors. Any hints to where I should start looking or any examples that have similar behavior is much appreciated. Filip _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/