aboutsummaryrefslogtreecommitdiff
path: root/engine/src/core-data/Common/MatDefs/Hdr/LogLum.j3md
diff options
context:
space:
mode:
Diffstat (limited to 'engine/src/core-data/Common/MatDefs/Hdr/LogLum.j3md')
-rw-r--r--engine/src/core-data/Common/MatDefs/Hdr/LogLum.j3md31
1 files changed, 31 insertions, 0 deletions
diff --git a/engine/src/core-data/Common/MatDefs/Hdr/LogLum.j3md b/engine/src/core-data/Common/MatDefs/Hdr/LogLum.j3md
new file mode 100644
index 0000000..0c4c6c8
--- /dev/null
+++ b/engine/src/core-data/Common/MatDefs/Hdr/LogLum.j3md
@@ -0,0 +1,31 @@
+MaterialDef Log Lum 2D {
+
+ MaterialParameters {
+ Texture2D Texture
+ Vector2 BlockSize
+ Vector2 PixelSize
+ Float NumPixels
+ Boolean DecodeLum
+ Boolean EncodeLum
+ Boolean Blocks
+ Boolean ComputeMax
+ }
+
+ Technique {
+ VertexShader GLSL100: Common/MatDefs/Gui/Gui.vert
+ FragmentShader GLSL100: Common/MatDefs/Hdr/LogLum.frag
+
+ WorldParameters {
+ WorldViewProjectionMatrix
+ }
+
+ Defines {
+ TEXTURE
+ ENCODE_LUM : EncodeLum
+ DECODE_LUM : DecodeLum
+ BLOCKS : Blocks
+ COMPUTE_MAX : ComputeMax
+ }
+ }
+
+} \ No newline at end of file