A shader that allows you to blend textures on my terrain using stages the first 2 stages which woud be 0 and 1 are for my color mask 3 is the base and 4,5,6,7 are the rest of the textures you are wanting to blend. when i use it it coms out ok but each texture uv needs its individual scale. i can scale object texture for the normal set terrain texture and i get the effect i want but its only the detail and base is there a way i can do this with all stages. either in code or in the fx file
`------------------Terrain------------------------
MAKE OBJECT TERRAIN ter ` CREATE THE TERRAINt
SET TERRAIN HEIGHTMAP ter, "media\tlv terrain1.jpg" ` SET THE HEIGHTMAP
SET TERRAIN SCALE ter, 18,9,18 ` 0.8 ,6`14,6,14 ` SET THE SCALE
SET TERRAIN SPLIT ter, 16 ` SPLIT VALUE BY 16 * 16
SET TERRAIN TILING ter, 2 ` DETAIL MAP TILING
set terrain light 90,1,-0.25,0,1,1,0.78,1000
` SET TERRAIN LIGHT ter,1, -0.25, -1,.15, .18, .29, 100 ` LIGHT - XDIR, YDIR, ZDIR, RED, GREEN, BLUE, INTENSITY
` SET TERRAIN TEXTURE ter, 24,9 ` base and detail texture
BUILD TERRAIN ter ` finally build the terrain
POSITION OBJECT ter,0,0,0
` // *NOTE* This shader uses two textures(stage 0 and 1) to specify the alpha value for 5 additional(6 total) texture layers,
` // to get the 5 mask channels I use the R, G and B values from the first texture(first 3 additional layers(3,4,5))
` // and the R and G channels from the second, you can see I wrote RED, GREEN and BLUE in the first texture, in the respective colours.
` // Setup object
Load Effect "media/TextureBlend.fx" ,20 , 0 , 1
Set Object Effect ter , 20
` // Assign all 8 texture stages
Texture Object ter , 0 , 1 ` // Layer mask map 1(for stages 3,4,5)
Texture Object ter , 1 , 2 ` // Layer mask map 2(for stages 6,7,4)
Texture Object ter , 2 , 3 ` // Base texture(requires no mask)
Texture Object ter , 3 , 3
Texture Object ter , 4 , 4
Texture Object ter , 5 , 5
Texture Object ter , 6 , 6
Texture Object ter , 7 , 3
thanks for all and any help