1MaterialDef Simple Water { 2 3 MaterialParameters { 4 Texture2D water_reflection 5 Texture2D water_refraction 6 Texture2D water_depthmap 7 Texture2D water_normalmap 8 Texture2D water_dudvmap 9 Vector4 waterColor 10 Vector3 lightPos 11 Float time 12 Float waterDepth 13 Vector4 distortionScale 14 Vector4 distortionMix 15 Vector4 texScale 16 Vector2 FrustumNearFar 17 Float waterTransparency 18 } 19 20 Technique { 21 VertexShader GLSL100: Common/MatDefs/Water/simple_water.vert 22 FragmentShader GLSL100: Common/MatDefs/Water/simple_water.frag 23 24 WorldParameters { 25 WorldViewProjectionMatrix 26 WorldViewMatrix 27 Resolution 28 CameraPosition 29 } 30 } 31 32 Technique FixedFunc { 33 } 34}