Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

ProfEich

Multiply textures?

This topic is 5755 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! How can I use a multiply-effect in OpenGL. Textures should get multiplied. The texture is over another texture and shoulg get multiplied. How?

Share this post


Link to post
Share on other sites
Advertisement
multi-texturing where the second texture units blend mode is set to GL_MODULATE, ie,
glTexEnvi(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_MODULATE);

or simply use two passes, with the blend mode as glBlendFunc(GL_ZERO,GL_SRC_COLOUR); for the second pass

| - Project-X - my mega project.. big things comming soon - | - adDeath - an ad blocker I made - | - email me - |

[edited by - RipTorn on January 18, 2003 6:42:58 AM]

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!