Hi all,

A trivial example of GLSL uniform arrays in use can be found in the osgshaders
example, in the marble fragment shader.

Also, only a couple Uniform::setElement(...) methods have been implemented, more
can be added as folks need other datatypes.

A goal of this code was to preserve backwards compatability, for both the API
and .osg file format.  The .osg format has been changed for the new Uniform
class, but the .osg plugin does continue to read files using the previous format
(NOTE: the .ive plugin has not beed upgraded yet).   Previously working code
should build/run without modification, things should just continue to work.
Please test!

Cheers
-- mew


Robert Osfield wrote:
> Hi All,
> 
> I have just merged Mike Webilen's changes to the OSG for support of GLSL
> uniform arrays.  The new support is integral to osg::Uniform so there
> are no new classes to manage, just a couple of extra methods.  This
> changes are now all checked into CVS.
> 
> One obvious benificiary of this work will be osgCharacter, as it'll no
> longer require mods to the core OSG to work, or at once Neil ports it
> Mike's new changes ;)
> 
> Cheers,
> Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to