material TerrainBeach { technique { pass { iteration once ambient 0 0 0 fragment_program_ref WeightedBlendLightmapFS { param_named lightMapFactor float 2.0 } vertex_program_ref WeightedBlendLightmapVS { } // Texture 1 texture_unit tex0 { texture sand.png scale 0.1 0.1 //filtering anisotropic //max_anisotropy 2 } // Texture 2 texture_unit tex1 { texture sand2.png scale 0.1 0.1 } // Texture 3 texture_unit tex2 { texture stones_round.png scale 0.1 0.1 } // Blend mask (rgb + a opacity) texture_unit blend { texture terrainsplat_beach.png } // Lightmap texture_unit lightmap { texture terrainsplat_beach_lightmap.png } } } }