1MaterialDef Bloom { 2 3 MaterialParameters { 4 Int NumSamples 5 Texture2D Texture 6 Float ExposurePow 7 Float ExposureCutoff 8 Boolean Extract 9 Texture2D GlowMap 10 } 11 12 Technique { 13 VertexShader GLSL150: Common/MatDefs/Post/Post15.vert 14 FragmentShader GLSL150: Common/MatDefs/Post/bloomExtract15.frag 15 16 WorldParameters { 17 WorldViewProjectionMatrix 18 } 19 20 Defines { 21 HAS_GLOWMAP : GlowMap 22 DO_EXTRACT : Extract 23 RESOLVE_MS : NumSamples 24 } 25 } 26 27 Technique { 28 VertexShader GLSL100: Common/MatDefs/Post/Post.vert 29 FragmentShader GLSL100: Common/MatDefs/Post/bloomExtract.frag 30 31 WorldParameters { 32 WorldViewProjectionMatrix 33 } 34 35 Defines { 36 HAS_GLOWMAP : GlowMap 37 DO_EXTRACT : Extract 38 } 39 } 40 41 Technique FixedFunc { 42 } 43}