diff options
author | Graham Linden <graham@lindenlab.com> | 2019-04-19 08:26:03 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-04-19 08:26:03 -0700 |
commit | f30a649f1cd789510b2f4e0b2b2f85043cdfd700 (patch) | |
tree | c1b445fc42c4676136f15da32104adddbad075cc /indra/newview/app_settings/shaders/class3/windlight | |
parent | ea9c8e4325b1f3629b57c36208c7669e1f028c10 (diff) |
SL-10967
All paths now use the same atmospheric transport calcs.
Diffstat (limited to 'indra/newview/app_settings/shaders/class3/windlight')
-rw-r--r-- | indra/newview/app_settings/shaders/class3/windlight/transportF.glsl | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/indra/newview/app_settings/shaders/class3/windlight/transportF.glsl b/indra/newview/app_settings/shaders/class3/windlight/transportF.glsl index 715d51f720..e7e56087ab 100644 --- a/indra/newview/app_settings/shaders/class3/windlight/transportF.glsl +++ b/indra/newview/app_settings/shaders/class3/windlight/transportF.glsl @@ -41,26 +41,6 @@ vec3 atmosTransportFrag(vec3 light, vec3 additive, vec3 atten) return (light + additive) * atten * 2.0; } -vec3 fullbrightAtmosTransportFrag(vec3 light, vec3 additive, vec3 atten) -{ - if (no_atmo == 1) - { - return light; - } - float brightness = dot(light.rgb, vec3(0.33333)); - return mix(atmosTransportFrag(light.rgb, additive,atten), light.rgb + additive.rgb, brightness * brightness); -} - -vec3 fullbrightShinyAtmosTransportFrag(vec3 light, vec3 additive, vec3 atten) -{ - if (no_atmo == 1) - { - return light; - } - float brightness = dot(light.rgb, vec3(0.33333)); - return mix(atmosTransportFrag(light.rgb, additive, atten), (light.rgb + additive.rgb) * (2.0 - brightness), brightness * brightness); -} - vec3 atmosTransport(vec3 light) { return atmosTransportFrag(light, getAdditiveColor(), getAtmosAttenuation()); @@ -68,10 +48,10 @@ vec3 atmosTransport(vec3 light) vec3 fullbrightAtmosTransport(vec3 light) { - return fullbrightAtmosTransportFrag(light, getAdditiveColor(), getAtmosAttenuation()); + return atmosTransportFrag(light, getAdditiveColor(), getAtmosAttenuation()); } vec3 fullbrightShinyAtmosTransport(vec3 light) { - return fullbrightShinyAtmosTransportFrag(light, getAdditiveColor(), getAtmosAttenuation()); + return atmosTransportFrag(light, getAdditiveColor(), getAtmosAttenuation()); } |