aboutsummaryrefslogtreecommitdiff
path: root/engine/src/core-effects/Common/MatDefs/Post/CrossHatch.j3md
blob: bf850dc9f5c80ec349afd4516b94c455c428e2f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
MaterialDef CrossHatch {
 
    MaterialParameters {
        Int NumSamples
        Texture2D Texture;
        Vector4 LineColor;
        Vector4 PaperColor;
        Float ColorInfluenceLine;
        Float ColorInfluencePaper;
        Float FillValue;
        Float Luminance1;
        Float Luminance2;
        Float Luminance3;
        Float Luminance4;
        Float Luminance5;
        Float LineThickness;
        Float LineDistance;
    }
 
    Technique {
        VertexShader GLSL150:   Common/MatDefs/Post/Post15.vert
        FragmentShader GLSL150: Common/MatDefs/Post/CrossHatch15.frag
 
        WorldParameters {
            WorldViewProjectionMatrix
        }
    }
 
    Technique {
        VertexShader GLSL100:   Common/MatDefs/Post/Post.vert
        FragmentShader GLSL100: Common/MatDefs/Post/CrossHatch.frag
 
        WorldParameters {
            WorldViewProjectionMatrix
        }
    }
 
    Technique FixedFunc {
    }
 
}