diff options
author | Graham Linden <graham@lindenlab.com> | 2018-11-15 13:13:11 -0800 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-11-15 13:13:11 -0800 |
commit | 5a8e633ece6bcab3b5c2a01b8e31b49ba12714a8 (patch) | |
tree | 058478dc902264b6aabe1f38bdf3272c8249266c /indra/newview/app_settings/shaders/class2/deferred | |
parent | 429bef3cf6361c10c99418d419939279747ceb24 (diff) |
SL-10066 and SL-10067
Fix fullbright transport transposed args and use display gamma for post-deferred gamma correction.
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/deferred')
-rw-r--r-- | indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl index 308a85d2d9..541122fb18 100644 --- a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl @@ -153,10 +153,9 @@ void main() ambient *= ambient; ambient = (1.0-ambient); - col.rgb = ambient * ((col * 0.5) + amblit); - - col += sunlit * max(min(da, scol), 0.0); - + col.rgb = amblit; + col.rgb *= ambient; + col += sunlit * min(da, scol); col *= diffuse.rgb; vec3 refnormpersp = normalize(reflect(pos.xyz, norm.xyz)); |