Jump to content
  • Advertisement
Sign in to follow this  
golgoth

Multi Texture blending!

This topic is 5467 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi all! is the default result of rendering 2 textures on a quad blend togeter? shouldn't I see only the last drawed texture? using someting like this: SNIP... for (i = 0; i < 2; ++i) { glActiveTextureARB(GL_TEXTURE0_ARB + i); Texture *l_texture = GetTexture(i); if (l_texture) glEnable(GL_TEXTURE_2D); else { glDisable(GL_TEXTURE_2D); } SNIP... the result looks like the multiply blending mode in photosop... is it normal? the effect is good ... but what if I dont want to use it... must play around with aplly and combine mode? this is really tricky... fun tho... THX

Share this post


Link to post
Share on other sites
Advertisement
there are different modes, default is MODULATE, use REPLACE to just replace with second units texture

glTexEnvi (I think thats the call)

HTH

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!