Hi,all:
I want to get world coordinates of vertices in shader. I used:
osg_ViewMatrixInverse*(gl_ModelViewMatrix*vertex);
But the result is wrong if the geode is a child of an HUD camera node which
is in the scenegraph.It seems that the uniform osg_ViewMatrixInverse is not for
the HUD camera. How can I get world coordinates under this situation?Thanks.
------------------
Failure is the mother of success.
Wu Zhicheng_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org