If I insert the line:

vec4 worldVerts = osg_ViewMatrixInverse * gl_ModelViewMatrix * gl_Vertex;

into my vertex shader (without actually using it for anything, just declaring 
it)
I get the following error:

error C1008: undefined variable "osg_ViewMatrixInverse"

Do I have to pass osg_ViewMatrixInverse as a uniform from the osg side or 
should I be able to use osg_ViewMatrixInverse in any GLSL code attached to an 
osg::Node without any extra effort?

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to