Hi Terry,
you just have to add the parameter to the SHLChunk that's all.
Andreas
shl->setUniformParameter("OSGInvViewMatrix ", Matrix());
I have used SHLChunk's OSGInvViewMatrix in vred with great results.
However, I can't seem to get it working in my own program. The matrix
appears to be all zeroes in my shader. Is there something I have to
do to activate OSGInvViewMatrix and all those other built-in uniforms?
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users