summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl10
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl
index 12115082a9..8814587fbc 100644
--- a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl
@@ -126,16 +126,24 @@ void main()
float ambient = da;
ambient *= 0.5;
ambient *= ambient;
- ambient = max(0.9, ambient);
+ ambient = max(0.66, ambient);
ambient = 1.0 - ambient;
vec3 sun_contrib = min(scol, final_da) * sunlit;
col.rgb = amblit;
col.rgb *= ambient;
+
+vec3 post_ambient = col.rgb;
+
col.rgb += sun_contrib;
+
+vec3 post_sunlight = col.rgb;
+
col.rgb *= diffuse.rgb;
+vec3 post_diffuse = col.rgb;
+
vec3 refnormpersp = normalize(reflect(pos.xyz, norm.xyz));
if (spec.a > 0.0) // specular reflection