[osg-users] Setting the transform matrices
Chris Kuliukas
chris at kuliukas.com
Wed Aug 9 18:11:31 PDT 2017
The problem is whenever I try to use
gc->getState()->setUseModelViewAndProjectionUniforms(true);
gc->getState()->setUseVertexAttributeAliasing(true);
it always seems to screw up something, like the precipitation or particle effects.
I figure if there is a way I can set the projection matrices etc to new variables, instead of overwriting existing gl_whatever variables in shaders, then I can supply my shaders with the data they need without affecting anything else.
------------------------
http://www.hrwallingford.com/facilities/ship-simulation-centre (http://www.hrwallingford.com/facilities/ship-simulation-centre)
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=71396#71396
More information about the osg-users
mailing list