uniform mat4 osg_ViewMatrixInverse;//osg内置uniform
void main()
{
vec4 posWorld = osg_ViewMatrixInverse*gl_ModelViewMatrix*gl_Vertex;
.....
}
uniform mat4 osg_ViewMatrixInverse;//osg内置uniform
void main()
{
vec4 posWorld = osg_ViewMatrixInverse*gl_ModelViewMatrix*gl_Vertex;
.....
}