Jump to content
  • Advertisement


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


Is this possible?

This topic is 5926 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 have a triangle with 3 textures applied to it. I''d like the first to be drawn opaquely like in normal texturing. I''d like the second to be blended on top of this, so it is drawn opaque at one vertex and completely transparent at the other two. The 3rd texture I want to do the same thing but with a different vertex opaque. Using 3 single passes this is easy, but what about in a single pass? The problem is that the vertex alpha values change depending which texture is being applied. I guess you could put the alpha for the 2nd triangle in the vertex diffuse color, and for the 3rd in the vertex specular colour, but this seems a dirty hack and you then can''t do other things using these. Plus if you had a fourth texture, you''ve run out of places to store alpha values. Is this possible in any way at all?
Read about my game, project #1
John 3:16

Share this post

Link to post
Share on other sites
You could send another (if you''re not already using them) set of Normals and use these to store the texture alpha values for that vertex. Can''t think of much else to get round that, sorry!


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!