[osg-users] How does OSG pass in the correct incoming ModelViewProjectionMatrix using SHAder version 330?

OpenSceneGraph Users osg-users at lists.openscenegraph.org
Sun Jun 21 19:42:27 PDT 2020


 osg::Uniform* modelViewProjectionMatrix = new 
osg::Uniform(osg::Uniform::FLOAT_MAT4, "MVP");
        osg::Matrixd  model = osg::Matrixd::identity();
osg::Matrix mat = model  * viewCamera->getViewMatrix() * 
viewCamera->getProjectionMatrix() ;
modelViewProjectionMatrix->set(mat);


-- 
You received this message because you are subscribed to the Google Groups "OpenSceneGraph Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osg-users+unsubscribe at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osg-users/9374c5d2-f8cc-41f5-ace3-09a91d6208e7o%40googlegroups.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20200621/bd00625b/attachment.html>


More information about the osg-users mailing list