Advertisement

turn off multi texturing

Started by March 26, 2002 10:44 AM
1 comment, last by adema 22 years, 11 months ago
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...   

Advertisement
huge thx for your help
now all works fine

This topic is closed to new replies.

Advertisement