Dual texture is very useful when you want to map two textures onto a model. The Windows Phone 7 XNA built-in
DualTextureEffect samples the pixel color from two texture images. That is why it is called dual texture. The textures used in the effect have their own texture coordinate and can be mapped individually, tiled, rotated, and so on. The texture is mixed using the pattern:
finalTexture.color = texture1.Color * texture2.Color; finalTexture.alpha = texture1.Alpha * texture2.Alpha;
alpha of the final texture come from a separate computation. The best practice of
DualTextureEffect is to apply the lightmap on the model. In computer graphics, computing the lighting and shadows is a big performance job in ...