ttaw wrote:
> 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 
 (emphasis mine)
What are the symptoms?


ttaw wrote:
> which is in the scenegraph.It seems that the uniform osg_ViewMatrixInverse is 
> not for the HUD camera.

If this is that fact, you could create a custom mat4 in the shader and provide 
the inverse ViewMatrix to it via an  osg::Uniform.


Best regards,
S.

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





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

Reply via email to