On 5/3/2011 11:14 AM, Nan WANG wrote: > Hi, > Anybody can explain what is the meaning of first parameter of function > void osg::StateSet::setTextureAttribute(unsigned int unit, StateAttribute * > attribute, StateAttribute::OverrideValue, value = StateAttribute::OFF) > what is the meaning of unit? > The texture unit to be affected?
Yes. > If I have multi texture... I have to use different unit value? from 0-N (N= > num of texture i am going to apply) Yes. -- Chris 'Xenon' Hanson, omo sanza lettere. [email protected] http://www.alphapixel.com/ Digital Imaging. OpenGL. Scene Graphs. GIS. GPS. Training. Consulting. Contracting. "There is no Truth. There is only Perception. To Perceive is to Exist." - Xen _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

