diff options
author | Graham Linden <graham@lindenlab.com> | 2019-06-10 09:15:35 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-06-10 09:15:35 -0700 |
commit | b79d0d2fdd047636598cbc9b088c3d4a10a84460 (patch) | |
tree | 6849c5cc4582c4720d121673121a418524a0cf77 /indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl | |
parent | 49eae58bd0d1eceda18a3997454beb15a5e27cbd (diff) |
SL-10969, SL-11051
Make fullbright alpha mask with mask cutoff == 0 not generate shadows.
Adjust handling of ambient across forward and deferred again.
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl index 92794ddaae..da85786317 100644 --- a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl @@ -59,7 +59,7 @@ uniform vec2 screen_res; vec3 getNorm(vec2 pos_screen); vec4 getPositionWithDepth(vec2 pos_screen, float depth); -void calcAtmosphericVars(vec3 inPositionEye, float ambFactor, out vec3 sunlit, out vec3 amblit, out vec3 additive, out vec3 atten); +void calcAtmosphericVars(vec3 inPositionEye, float ambFactor, out vec3 sunlit, out vec3 amblit, out vec3 additive, out vec3 atten, bool use_ao); float getAmbientClamp(); vec3 atmosFragLighting(vec3 l, vec3 additive, vec3 atten); vec3 scaleSoftClipFrag(vec3 l); @@ -109,7 +109,7 @@ void main() vec3 additive; vec3 atten; - calcAtmosphericVars(pos.xyz, ambocc, sunlit, amblit, additive, atten); + calcAtmosphericVars(pos.xyz, ambocc, sunlit, amblit, additive, atten, true); float ambient = da; ambient *= 0.5; |