• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1MaterialDef Log Lum 2D {
2
3    MaterialParameters {
4        Texture2D Texture
5        Vector2 BlockSize
6        Vector2 PixelSize
7        Float NumPixels
8        Boolean DecodeLum
9        Boolean EncodeLum
10        Boolean Blocks
11        Boolean ComputeMax
12    }
13
14    Technique {
15        VertexShader GLSL100:   Common/MatDefs/Gui/Gui.vert
16        FragmentShader GLSL100: Common/MatDefs/Hdr/LogLum.frag
17
18        WorldParameters {
19            WorldViewProjectionMatrix
20        }
21
22        Defines {
23            TEXTURE
24            ENCODE_LUM : EncodeLum
25            DECODE_LUM : DecodeLum
26            BLOCKS : Blocks
27            COMPUTE_MAX : ComputeMax
28        }
29    }
30
31}