On 7/25/07, Wiedemann, Rudolf, OPS3 <[EMAIL PROTECTED]> wrote:
> Hi,
>
> is there any possibility to get or calculate something like
> "gl_ModelMatrix" in a GLSL vertex shader?

There is a gl_ModelViewMatrix inbuilt into GLSL, but not
gl_ModeMatrix, as there really isn't any such concept within OpenGL,
its all ModelViewMatrix.

What you could do is compute the ModelMatrix by multiplying the
gl_ModelViewMatrix by the osg_ViewMatrixInverse to get the
ModelMatrix.

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

Reply via email to