1MaterialDef SSAOBlur {
2
3    MaterialParameters {       
4        Int NumSamples
5        Int NumSamplesDepth
6        Texture2D Texture
7        Texture2D SSAOMap
8        Texture2D DepthTexture
9        Vector2 FrustumNearFar
10        Boolean UseAo
11        Boolean UseOnlyAo        
12        Float XScale
13        Float YScale
14    }
15
16    Technique {
17        VertexShader GLSL150:   Common/MatDefs/Post/Post15.vert
18        FragmentShader GLSL150: Common/MatDefs/SSAO/ssaoBlur15.frag
19
20        WorldParameters {
21            WorldViewProjectionMatrix
22            WorldViewMatrix
23            Resolution
24        }
25
26        Defines {
27            USE_AO : UseAo
28            USE_ONLY_AO : UseOnlyAo
29            RESOLVE_MS : NumSamples
30            RESOLVE_DEPTH_MS : NumSamplesDepth
31        }
32    }
33
34    Technique {
35        VertexShader GLSL120:   Common/MatDefs/Post/Post.vert
36        FragmentShader GLSL120: Common/MatDefs/SSAO/ssaoBlur.frag
37
38        WorldParameters {
39            WorldViewProjectionMatrix
40            WorldViewMatrix
41            Resolution
42
43        }
44        
45        Defines {
46            USE_AO : UseAo
47            USE_ONLY_AO : UseOnlyAo
48            RESOLVE_MS : NumSamples
49            RESOLVE_DEPTH_MS : NumSamplesDepth
50        }
51    }
52
53
54
55    Technique FixedFunc {
56    }
57}