Wyatt B. S. Earp wrote on Thursday, September 03, 2009 2:38 PM:

> I posted this via the mailing list, but it seems to never have gone
through.
> 
> I want to use a struct in my glsl shader.
> 
> osg::StateSet::getOrCreateUniform allows for the specification of
> Uniform::Type, but I don't see an enumeration for struct.  How would I
> create/set the uniform struct?  

You need to specify uniforms for each struct member, so they'd have
names like "mystruct.firstmember" and "mystruct.secondmember" with
appropriate types.

-- 
Bryan Thrall
FlightSafety International
[email protected]
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to