HLSL Terrain Multitexturing
From GameStudio Wiki
FIX ME !
!HLSL Terrain Multitexturing
The terrain needs 3 or 4 textures:
Skin 1 - not tiled. This texture's red channel determines how the 3rd skin is blended over the second. The green channel determines how the 4th skin (if any) is blended of the the second. The blue channel contains an optional shadow map.
Skin 2 - can be tiled or not. Base texture for the terrain.
Skin 3 - tiled. Masked by the red channel.
Skin 4 - tiled. Masked by the green channel.
Skin 5, Skin 6 - Optional terrain texture and detail map for non-shader hardware.
The shader is contained in the following template script: [1]
Add the script and assign the *terrain_multi3* action to the terrain. The Customize functions allow to set the type of dynamic light, the texture scales and other parameters.
