Sign in to follow this  
Coluna

Terrain layers - texture stages setup

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this