Hi all,
I have a very simple question:

I have this texture attributes being use in some bins:

_texgen2->setMode(osg::TexGen::Mode::EYE_LINEAR);
_texgen2->setPlane(osg::TexGen::Coord::S,osg::Plane(eyeplane[0],eyeplane[1],eyeplane[2],eyeplane[3]));
statesetBin3->setTextureMode(0,GL_TEXTURE_GEN_S,StateAttribute::ON);
statesetBin3->setTextureAttribute(0,_texgen2,osg::StateAttribute::ON);

the “eyeplane” changes depending on the view (When the viewer updates)… Do I have to repeat this piece of code when I update the view?.... ( If I do.. I can not the anything)

thanks in advance,

María
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to