[osg-users] OSG uniforms in GLSL shaders

Himar Carmona himarcarmona at gmail.com
Sun Nov 1 01:55:30 PST 2009


   how can i use the uniform osg_ViewMatrixInverse in my shaders? My shader
compiles fine, but it seems i have the view inverse matrix wrong. I'm not
sure if OSG is initializing this uniform for me at runtime. In fact, i don't
know exactly what i have to take into account to use it. Can anyone give me
some hints regarding its (recommended) use?

Thanks and best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20091101/d3ac3c77/attachment.htm>

More information about the osg-users mailing list