Jump to content
  • Advertisement
Sign in to follow this  
Coluna

Terrain layers - texture stages setup

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

Is it possible to have 2 detail layers drawned at same time? Like : color = tex_detail_0*tex_mask_0 + tex_detail_1*tex_mask_1; but using only texture combiners? Or even better (agrouping all masks in one texture): color = tex_detail_0*tex_mask.RED + tex_detail_1*tex_mask.GREEN; or color = tex_detail_0*tex_mask.RED + tex_detail_1*tex_mask.GREEN + tex_detail2*tex_mask.BLUE; I know i can use shaders, but setting up REG COMBINERS and ATI Frament shader (older HW) is a pain...thanks

Share this post


Link to post
Share on other sites
Advertisement
The most common and well supported way you could do it is with using multitexturing. (glActiveTextureARB) This extension is supported by almost any card. With the glTexEnvi() call you can specify how the textures are interpulated per pixel. If this doesnt give you enough control I think register combiners are the way to go.

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!