summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class1
diff options
context:
space:
mode:
authorRunitai Linden <davep@lindenlab.com>2020-03-25 15:29:11 -0500
committerRunitai Linden <davep@lindenlab.com>2020-03-25 15:29:11 -0500
commit9e0cf3edaab99cc1c427e590c179d6dd604f4567 (patch)
treeb52d632ea981df12fb635d3d2c92405d92057899 /indra/newview/app_settings/shaders/class1
parent20e5ad48ec1a9c6fa4902fa34b6b53f0a7fc5858 (diff)
Fix for class2/softenLightF.glsl not matching class1/softenLightF.glsl
Diffstat (limited to 'indra/newview/app_settings/shaders/class1')
-rw-r--r--indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl3
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl
index 5b94baf7e6..a5804220bc 100644
--- a/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl
+++ b/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl
@@ -84,7 +84,8 @@ void main()
vec3 light_dir = (sun_up_factor == 1) ? sun_dir : moon_dir;
float da = clamp(dot(norm.xyz, light_dir.xyz), 0.0, 1.0);
- //da = pow(da, 1.0/1.3);
+ float light_gamma = 1.0/1.3;
+ da = pow(da, light_gamma);
vec4 diffuse = texture2DRect(diffuseRect, tc);