Hello Alexandre,

What you're proposing is to copy slave camera view matrix into master (default) camera matrix each frame, am I right ?

Isn't it another way yo avoid this copy ? isn't it a little expensive ?

No, I'm proposing to copy the slave camera's view matrix into an osg::Uniform each frame so that you can use it from the shader for your lighting computations. It's not that expensive, no, and it's required so you can't really do without...

Hope this helps,

J-S
--
______________________________________________________
Jean-Sebastien Guay    jean-sebastien.g...@cm-labs.com
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to