Terrain layers - texture stages setup

Started by
0 comments, last by skow 18 years, 10 months ago
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
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.

This topic is closed to new replies.

Advertisement