[osg-users] TexMat and Multitexturing

Christophe Medard christophe.medard at oktal.fr
Tue Oct 2 10:21:26 PDT 2007

Right, I didn't see the TexMat could be specified texture unit by texture unit, through Osg.StateSet.setTextureAttributeAndModes().
Until now, I did :

geode.getOrCreateStateSet().setAttributeAndModes(currentTexMatrix, (uint)Osg.StateAttribute.Values.ON);


geode.getOrCreateStateSet().setTextureAttributeAndModes(0, currentTexMatrix, (uint)Osg.StateAttribute.Values.ON);
geode.getOrCreateStateSet().setTextureAttributeAndModes(1, currentTexMatrix, (uint)Osg.StateAttribute.Values.ON);

is also valid, and allow to specify things for each texture channel. So please forget my question !  


----- Original Message ----- 
From: robert.osfield at gmail.com
To: osg-users at lists.openscenegraph.org 
Sent: Friday, August 24, 2007 09:49:34
Subject: TexMat and Multitexturing

Hi Christophe,

I am not aware of any bugs with setting TexMat on multiple textures.
Are you setting the tex mat on each texture unit separately?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20071002/7ceeaf46/attachment-0002.htm>

More information about the osg-users mailing list