[osg-users] Model Matrix in Vertex Shader
Sebastian Messerschmidt
sebastian.messerschmidt at gmx.de
Fri Jan 27 00:29:03 PST 2017
Hi Johny,
> osg_ViewMatrixInverse is not set on 3.4.0? This is always zero for me.
How did you find out it is actually zero?
>
> I use right settings:
>
> Code:
> state->setUseModelViewAndProjectionUniforms(true);
> state->setUseVertexAttributeAliasing(true);
Did you set this at the camera's state set (Although I think the
osg_ViewMatrix* are not related to the ModelViewProjectionUniform setting)
Is the osg_ViewMatrix working correctly?
Cheers
Sebastian
>
>
>
> (osg_ProjectionMatrix, osg_NormalMatrix, osg_ModelViewMatrix do work properly)
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=70058#70058
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
More information about the osg-users
mailing list