aboutsummaryrefslogtreecommitdiff
path: root/engine/src/core-effects/Common/MatDefs/Post/LightScattering.j3md
blob: 37e0e8536128c0c15abf4eea86fad7ad67492366 (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 Light Scattering {
 MaterialParameters {
        Int NumSamples
        Int NumSamplesDepth
        Texture2D Texture
        Texture2D DepthTexture       
        Vector3 LightPosition
        Int NbSamples
        Float BlurStart
        Float BlurWidth
        Float LightDensity
        Boolean Display
        Boolean multiSampledDepth
    }

    Technique {
        VertexShader GLSL150:   Common/MatDefs/Post/LightScattering15.vert
        FragmentShader GLSL150: Common/MatDefs/Post/LightScattering15.frag

        WorldParameters {
            WorldViewProjectionMatrix
        }

        Defines {
            RESOLVE_MS : NumSamples
            RESOLVE_DEPTH_MS : NumSamplesDepth
        }
    }

    Technique {
        VertexShader GLSL120:   Common/MatDefs/Post/LightScattering.vert
        FragmentShader GLSL120: Common/MatDefs/Post/LightScattering.frag

        WorldParameters {
            WorldViewProjectionMatrix
        }
    }

    Technique FixedFunc {
    }
}