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);
but
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 !
:}
Thanks.
----- Original Message -----
From: [EMAIL PROTECTED]
To: [email protected]
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?
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org