Hi you can create your own uniform and assign correct value each frame from correct camera or, if in cull callback, you can get current camera from cullvisitor and ask view matrix there.
Cheers. 31.01.2013, 00:08, "Peterakos" <hay...@gmail.com>: > 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 > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org