1 MaterialDef Terrain { 2 3 MaterialParameters { 4 5 // use tri-planar mapping 6 Boolean useTriPlanarMapping 7 8 Texture2D Alpha 9 Texture2D Tex1 10 Texture2D Tex2 11 Texture2D Tex3 12 Float Tex1Scale 13 Float Tex2Scale 14 Float Tex3Scale 15 } 16 17 Technique { 18 VertexShader GLSL100: Common/MatDefs/Terrain/Terrain.vert 19 FragmentShader GLSL100: Common/MatDefs/Terrain/Terrain.frag 20 21 WorldParameters { 22 WorldViewProjectionMatrix 23 } 24 25 Defines { 26 TRI_PLANAR_MAPPING : useTriPlanarMapping 27 } 28 } 29 30 Technique FixedFunc { 31 } 32 33 }