1MaterialDef Cartoon Edge {
2
3    MaterialParameters {
4        Int NumSamples
5        Int NumSamplesDepth
6        Texture2D Texture
7        Texture2D NormalsTexture
8        Texture2D DepthTexture
9        Color EdgeColor
10        Float EdgeWidth
11        Float EdgeIntensity
12        Float NormalThreshold
13        Float DepthThreshold
14        Float NormalSensitivity
15        Float DepthSensitivity
16    }
17
18     Technique {
19        VertexShader GLSL150:   Common/MatDefs/Post/Post15.vert
20        FragmentShader GLSL150: Common/MatDefs/Post/CartoonEdge15.frag
21
22        WorldParameters {
23            WorldViewProjectionMatrix
24            WorldViewMatrix
25            Resolution
26        }
27
28        Defines {
29            RESOLVE_MS : NumSamples
30            RESOLVE_DEPTH_MS : NumSamplesDepth
31        }
32    }
33
34   
35    Technique {
36        VertexShader GLSL100:   Common/MatDefs/Post/Post.vert
37        FragmentShader GLSL100: Common/MatDefs/Post/CartoonEdge.frag
38
39        WorldParameters {
40            WorldViewProjectionMatrix
41            WorldViewMatrix
42            Resolution
43        }
44    }
45
46    Technique FixedFunc {
47    }
48}