Jump to content
  • Advertisement

Archived

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

Arton

How do i mix textures ?

This topic is 5893 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

Id like to render a triangle with one texture for each vertex. Something like this: ** *** *-*x* ---xxx ---x-xxx ---x-xxxx What is the standard technice to that?

Share this post


Link to post
Share on other sites
Advertisement
You cannot do it in one pass (without multitexturing), but you can do it in 3 passes. Just set the vertex color for the other 2 vertices to 0 alpha, which will cause the texture to fade out at these vertices. Swap textures, swap vertex colors and repeat twice.

You can also do it in one pass with multitexturing, but you need to have the alpha components of your textures setup properly (and a card that supports at least 3 textures in a single pass).

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!