turn off multi texturing
i use glActiveTextureARB and glMultiTexCoord2fARB for multi
texturing.
it works just fine with textured objects but
if i enable multi texturing all objects consist of multiple
textures.
how do i turn off this multi texturing?
Just call glDisable( GL_TEXTURE_xD) for all texture unit you don''t want to use anymore. Here''s an example (I don''t remember the exact constants name but you''ll get the point) :
glActiveTextureARB( GL_TEXTURE0_ARB);glEnable( GL_TEXTURE_2D);glActiveTextureARB( GL_TEXTURE1_ARB);glEnable( GL_TEXTURE_2D);// draw multitextured stuff...glActiveTextureARB( GL_TEXTURE1_ARB);glDisable( GL_TEXTURE_2D);glActiveTextureARB( GL_TEXTURE0_ARB);// draw mono textured stuff...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement