summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-04-29 08:53:09 -0700
committerGraham Linden <graham@lindenlab.com>2019-04-29 08:53:09 -0700
commiteff7acfb1caaa092a88555fca752dc9aea11625e (patch)
tree5f92273d96388e7eb31f4f3fd65121b259c11d32 /indra
parentf133be068a4aa23c02c47348f5c7d4a28e1d5c37 (diff)
Remove hack mul of sunlight in alpha shader and add some taps for debugging the lighting pipe.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl7
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl6
2 files changed, 9 insertions, 4 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl b/indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl
index d11b81d2d3..11fcb3e87a 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/alphaF.glsl
@@ -204,7 +204,6 @@ void main()
vec3 atten;
calcAtmosphericVars(pos.xyz, 1.0, sunlit, amblit, additive, atten);
- sunlit *= 0.5;
vec2 abnormal = encode_normal(norm.xyz);
@@ -240,12 +239,14 @@ vec3 post_sunlight = color.rgb;
vec3 post_diffuse = color.rgb;
- //color.rgb = mix(diff.rgb, color.rgb, final_alpha);
+ color.rgb = mix(diff.rgb, color.rgb, final_alpha);
+
+ //color.rgb = srgb_to_linear(color.rgb);
color.rgb = atmosFragLighting(color.rgb, additive, atten);
color.rgb = scaleSoftClipFrag(color.rgb);
- //color.rgb = srgb_to_linear(color.rgb);
+vec3 post_atmo = color.rgb;
vec4 light = vec4(0,0,0,0);
diff --git a/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl
index e0fe6cfae1..afdd8cdda3 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl
@@ -160,7 +160,9 @@ vec3 post_diffuse = col.rgb;
col += speccol;
}
}
-
+
+ vec3 post_spec = col.rgb;
+
col.rgb += diffuse.a * diffuse.rgb;
if (envIntensity > 0.0)
@@ -176,6 +178,8 @@ vec3 post_diffuse = col.rgb;
col = scaleSoftClipFrag(col);
}
+vec3 post_atmo = col.rgb;
+
#ifdef WATER_FOG
vec4 fogged = applyWaterFogView(pos.xyz,vec4(col, bloom));
col = fogged.rgb;