Jump to content

  • Log In with Google      Sign In   
  • Create Account


GL_ARB_texture_env_combine problems


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 thw   Members   -  Reputation: 122

Like
Likes
Like

Posted 25 August 2001 - 09:00 AM

Hi
glActiveTextureARB(GL_TEXTURE1_ARB);			
glTexEnvi(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_COMBINE_ARB);
glTexEnvi(GL_TEXTURE_ENV,GL_SOURCE0_RGB_ARB,GL_PREVIOUS_ARB);
glTexEnvi(GL_TEXTURE_ENV,GL_SOURCE1_RGB_ARB,GL_TEXTURE);
glTexEnvi(GL_TEXTURE_ENV,GL_OPERAND0_RGB_ARB,GL_SRC_COLOR);
glTexEnvi(GL_TEXTURE_ENV,GL_OPERAND1_RGB_ARB,GL_SRC_COLOR);		
glTexEnvi(GL_TEXTURE_ENV,GL_COMBINE_RGB_ARB,GL_REPLACE);
 
with this code i want only the texture on GL_TEXTURE0_ARB to be shown,but it doesn''t work, does anyone know why ? ps:i know that i can have this easier ,but it want to use the extension.

Sponsor:

#2 Gorg   Members   -  Reputation: 248

Like
Likes
Like

Posted 27 August 2001 - 08:01 AM

Because replace uses SOURCE0




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS