[osg-users] GL_TEXTURE_GEN_S question

Judie judie.m.stanley at gmail.com
Fri Jul 11 10:57:15 PDT 2008


Hi,

I am applying sphere mapping and using GL_TEXTURE_GEN_S & T so that
osg will generate the texture coordinates automatically. My question
is: if the object is changed by something like a boolean operation, do
I need to do anything or will the texture coordinates be regenerated
correctly because it is set to generate texture coordinates
automatically through:
state->setTextureMode(texUnit, GL_TEXTURE_GEN_S,
osg::StateAttribute::ON);

Thanks,

Judie




More information about the osg-users mailing list