diff options
author | Geenz <geenz@geenzo.com> | 2019-04-01 23:25:48 -0700 |
---|---|---|
committer | Geenz <geenz@geenzo.com> | 2019-04-01 23:25:48 -0700 |
commit | 6b54c48dff9a38a0a1410ed9bcd06d2667320df3 (patch) | |
tree | 538b6fdbaf1c9d5f593cdc752dc06f8a452c82b5 /indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl | |
parent | 558eaef3ea09ff560c1fead65f1d1b3b75b4bdc5 (diff) |
Scale the specular contribution to account for brighter highlights.
This is more or less to achieve the non-ALM bloom behavior in most circumstances.
Why scale it? Normalized blinn-phong gets brighter the higher the specular exponent. As it stood, the old spec contribution was extremely bright despite looking "correct". This is largely eyeballed, but generally looks better for all light sources applied to the surface of the water.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl | 2 |
1 files changed, 1 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 a04a24955e..cbeab3fc72 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/softenLightF.glsl @@ -130,7 +130,7 @@ void main() // add the two types of shiny together vec3 spec_contrib = dumbshiny * spec.rgb; - bloom = dot(spec_contrib, spec_contrib) / 32; + bloom = dot(spec_contrib, spec_contrib) / 6; col += spec_contrib; } |