Archived

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

Arton

How do i mix textures ?

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
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