Jump to content
  • Advertisement
Sign in to follow this  
hanhan

hwo to do this render

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

I want to render a triangle,but the triangle is render by two texture.one part is render by one texture, the other by next texture.like this : |\ | \ |--\ |___\ the top using one texture, the bottom use othere. How can i do?

Share this post


Link to post
Share on other sites
Advertisement
One way is to split your triangle. Into two parts. Then render the top half with one texture, and the bottom half with another.

Share this post


Link to post
Share on other sites
If you want a clean split between them, then you will have to split up the triangle into multiple triangles. In the case you gave the top part will be a single triangle but you'll need 2 to make up the bottom part.

Share this post


Link to post
Share on other sites
Quote:
Original post by DrunkenHyena
If you want a clean split between them, then you will have to split up the triangle into multiple triangles. In the case you gave the top part will be a single triangle but you'll need 2 to make up the bottom part.


Thanks!

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.

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!