Jump to content
  • Advertisement


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

Someone Else

Modulate diffuse alpha with texture alpha?

This topic is 6251 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! I'm working on Direct3D 8 and I'm wondering if anyone knows the combination of Texture ColorOp, ColorArgs, AlphaOp and AlphaArgs to modulate the diffuse's alpha with the texture's alpha? I'm trying to use a texture to simulate a leaf, so I use the CreateTextureFromFileEx function and specify a color key. However, I can't seem to get the correct texture op configurations to make the texture fade by changing the diffuse alpha of that polygon. I've tried many combinations and the texture just won't be affected. Any help? Or am I setting something wrong somewhere else? I don't think going into the texture and modifying the alpha values there is the only way... (could be wrong) Edited by - Someone Else on June 9, 2001 10:36:00 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!