I want to texture a triangel with three textured which are weighted in a special way: Each texture “represents” a corner of the triangel, having a weight of 1 at that point. The closer to the other side of the triangel the less is the weight, until 0. Every point in the triangel has a summed up weight of 1, consisting of the weights of the three textures.
Anyone knows how to do it with OpenGL ?
A good way would be to create an alpha mask representing the weights, but how to create the alpha mask dynamically, maybe with texturing to the alpha mask by having (1,1,1) at one corner and (0,0,0) at the other two corners and doing gourod shading ?
Thx in advance,