summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders
diff options
context:
space:
mode:
authorGraham Madarasz <graham@lindenlab.com>2013-05-08 12:53:47 -0700
committerGraham Madarasz <graham@lindenlab.com>2013-05-08 12:53:47 -0700
commit415599b54d2450e915870b1a16065340fad53f4c (patch)
tree81760cce54c943b382c5784278410c93d0048fc2 /indra/newview/app_settings/shaders
parentfd8b34e44b9acce23b2c2405ce9f1ad22b71b5b5 (diff)
NORSPEC-156 back to the fix that actually works
Diffstat (limited to 'indra/newview/app_settings/shaders')
-rwxr-xr-xindra/newview/app_settings/shaders/class1/deferred/fullbrightF.glsl5
-rwxr-xr-xindra/newview/app_settings/shaders/class1/deferred/fullbrightV.glsl6
2 files changed, 6 insertions, 5 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/fullbrightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/fullbrightF.glsl
index bb28f02aab..cb050c800f 100755
--- a/indra/newview/app_settings/shaders/class1/deferred/fullbrightF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/fullbrightF.glsl
@@ -42,9 +42,12 @@ void main()
{
float shadow = 1.0;
- vec4 color = diffuseLookup(vary_texcoord0.xy)* vertex_color;
+ vec4 color = diffuseLookup(vary_texcoord0.xy) * pow(vertex_color.rgb,vec3(2.2f));
+
color.rgb = fullbrightAtmosTransport(color.rgb);
+
color.rgb = fullbrightScaleSoftClip(color.rgb);
+
frag_color = color;
}
diff --git a/indra/newview/app_settings/shaders/class1/deferred/fullbrightV.glsl b/indra/newview/app_settings/shaders/class1/deferred/fullbrightV.glsl
index dd56a8c2b0..3f09a15375 100755
--- a/indra/newview/app_settings/shaders/class1/deferred/fullbrightV.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/fullbrightV.glsl
@@ -57,8 +57,6 @@ void main()
vary_texcoord0 = (texture_matrix0 * vec4(texcoord0,0,1)).xy;
calcAtmospherics(pos.xyz);
-
- vertex_color.rgb = pow(diffuse_color, vec3(2.2f,2.2f,2.2f));
- vertex_color.a = diffuse_color.a;
-
+
+ vertex_color = diffuse_color;
}