summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class3/deferred/luminanceF.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/app_settings/shaders/class3/deferred/luminanceF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class3/deferred/luminanceF.glsl19
1 files changed, 19 insertions, 0 deletions
diff --git a/indra/newview/app_settings/shaders/class3/deferred/luminanceF.glsl b/indra/newview/app_settings/shaders/class3/deferred/luminanceF.glsl
new file mode 100644
index 0000000000..d9483bc6e4
--- /dev/null
+++ b/indra/newview/app_settings/shaders/class3/deferred/luminanceF.glsl
@@ -0,0 +1,19 @@
+/**
+ * @file luminanceF.glsl
+ *
+ * $LicenseInfo:firstyear=2007&license=viewerlgpl$
+ * $/LicenseInfo$
+ */
+
+#extension GL_ARB_texture_rectangle : enable
+
+uniform sampler2DRect lightMap;
+uniform sampler2DRect diffuseRect;
+
+varying vec2 vary_fragcoord;
+void main()
+{
+ float i = texture2DRect(lightMap, vary_fragcoord.xy).r;
+ gl_FragColor.rgb = vec3(i);
+ gl_FragColor.a = 1.0;
+}