1 MaterialDef Fade { 2 3 MaterialParameters { 4 Int NumSamples 5 Int NumSamplesDepth 6 Texture2D Texture 7 Texture2D DepthTexture 8 Vector4 FogColor; 9 Float FogDensity; 10 Float FogDistance; 11 } 12 13 Technique { 14 VertexShader GLSL150: Common/MatDefs/Post/Post15.vert 15 FragmentShader GLSL150: Common/MatDefs/Post/Fog15.frag 16 17 WorldParameters { 18 WorldViewProjectionMatrix 19 } 20 21 Defines { 22 RESOLVE_MS : NumSamples 23 RESOLVE_DEPTH_MS : NumSamplesDepth 24 } 25 } 26 27 Technique { 28 VertexShader GLSL100: Common/MatDefs/Post/Post.vert 29 FragmentShader GLSL100: Common/MatDefs/Post/Fog.frag 30 31 WorldParameters { 32 WorldViewProjectionMatrix 33 } 34 } 35 36 Technique FixedFunc { 37 } 38 39 }