1 MaterialDef GammaCorrection { 2 3 MaterialParameters { 4 Int NumSamples 5 Texture2D Texture 6 Float gamma 7 Boolean computeLuma 8 } 9 10 Technique { 11 VertexShader GLSL150: Common/MatDefs/Post/Post15.vert 12 FragmentShader GLSL150: Common/MatDefs/Post/GammaCorrection15.frag 13 14 WorldParameters { 15 WorldViewProjectionMatrix 16 } 17 18 Defines { 19 COMPUTE_LUMA : computeLuma 20 } 21 } 22 23 Technique { 24 VertexShader GLSL100: Common/MatDefs/Post/Post.vert 25 FragmentShader GLSL100: Common/MatDefs/Post/GammaCorrection.frag 26 27 WorldParameters { 28 WorldViewProjectionMatrix 29 } 30 31 Defines { 32 COMPUTE_LUMA : computeLuma 33 } 34 } 35 36 Technique FixedFunc { 37 } 38 39 }