I am new to this multi texture terrain shader. I have been looking over some shader effects and trying to understand them. The one in particular I am having trouble with is here...
http://www.coniserver.net/wiki/index.php/Terrain_MultiTex_2I can't quite seem to get the concept of the skins that are assigned. Here is what I am confused on...
Texture entSkin1; //1st tile tex RGB
Texture mtlSkin1; //2nd tile tex RGB and blender in A
Texture mtlSkin2; //3nd tile tex RGB and blender in A
Texture mtlSkin3; //4nd tile tex RGB and blender in A
Texture mtlSkin4; //5nd tile tex RGB and blender in A
Basically, I am trying to make a blender map with say colors such as Red, Green and Blue. I want to add grass, rock and sand textures to this map that relate to the red green and blue on the blender map, but maybe someone can explain the 5 lines above to me on what is what.
Here is what I have, but I know this isn't right.
skin1 = ter_blend1; //defined bmap blender
skin2 = ter_tex1; //defined bmap grass
skin3 = ter_tex2; //defined bmap rock
skin4 = ter_tex3; //defined bmap sand
Thanks.