After some trial and errors, I managed to do it in shader. But this means one 
redundant matrix multiplication per each vertex. Isn't it more effective to 
compute it once per frame on cpu side?

What's the purpose of state.getModelViewMatrix()? I expected to get a 
camera*model matrix there. Or it is not yet defined at the moment lights are 
applied?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75206#75206





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to