Hi, 
I still cant get this working. I tried using getSteteSet instead of 
GetOrCreateStateSet, but it returns a valid StateSet and when i get the texture 
attribute list, its size is 1 (so i assume tha this is the texture unit im 
looking for). After that i create the unifor using this texture unit number (0):

Code:

osg::Uniform* textureUniform = new osg::Uniform(osg::Uniform::SAMPLER_2D, 
"baseMap"); 
                                textureUniform->set(0);
                                ss->addUniform(textureUniform);




But it still shows as black. Any idea?

J.

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=7178#7178





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to