Ok great not to good with shaders this will be a alot of help.
here is just the terrain code.
`================================================================================
`=---------------------------------EFFECTS--------------------------------------=
`================================================================================
LOAD EFFECT "EFX\Advanced Terrains\Blender\blender.fx",7,0
`------------------Terrain------------------------
MAKE OBJECT TERRAIN ter ` CREATE THE TERRAINt
SET TERRAIN HEIGHTMAP ter, "levels\1\terrain\terrain 19.jpg" ` SET THE HEIGHTMAP
SET TERRAIN SCALE ter, 16, 14 ,16`14,6,14 ` SET THE SCALE
SET TERRAIN SPLIT ter, 16 ` SPLIT VALUE BY 16 * 16
SET TERRAIN TILING ter, 1 ` 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, 13,12 ` base and detail texture
BUILD TERRAIN ter ` finally build the terrain
`texture object ter ,0,12
`texture object ter ,1,13
`texture object ter ,4,47
`set bump mapping on ter,47
SET OBJECT SMOOTHING ter,75
SET OBJECT ter,1,1,1
SET OBJECT FOG ter,1
POSITION OBJECT ter,0,0,0
`set object effect ter,7
` hide object ter
PHY MAKE RIGID BODY STATIC TERRAIN TER
Y# = GET TERRAIN ground HEIGHT(ter,x#,z#)
SC_SETUPcomplexobject 90,1,1234