• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1MaterialDef Light Scattering {
2 MaterialParameters {
3        Int NumSamples
4        Int NumSamplesDepth
5        Texture2D Texture
6        Texture2D DepthTexture
7        Vector3 LightPosition
8        Int NbSamples
9        Float BlurStart
10        Float BlurWidth
11        Float LightDensity
12        Boolean Display
13        Boolean multiSampledDepth
14    }
15
16    Technique {
17        VertexShader GLSL150:   Common/MatDefs/Post/LightScattering15.vert
18        FragmentShader GLSL150: Common/MatDefs/Post/LightScattering15.frag
19
20        WorldParameters {
21            WorldViewProjectionMatrix
22        }
23
24        Defines {
25            RESOLVE_MS : NumSamples
26            RESOLVE_DEPTH_MS : NumSamplesDepth
27        }
28    }
29
30    Technique {
31        VertexShader GLSL120:   Common/MatDefs/Post/LightScattering.vert
32        FragmentShader GLSL120: Common/MatDefs/Post/LightScattering.frag
33
34        WorldParameters {
35            WorldViewProjectionMatrix
36        }
37    }
38
39    Technique FixedFunc {
40    }
41}