diff options
author | Graham Linden <graham@lindenlab.com> | 2019-07-12 09:34:38 -0700 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-07-12 09:34:38 -0700 |
commit | b8f64c55b7da9ee84f5ae570ff12cc3a57ca0d07 (patch) | |
tree | 2b391719a948a8d4cecb6600c3b44febeb26d407 /indra/newview/app_settings/shaders/class1/deferred/skyV.glsl | |
parent | 6a7f12ebcf8009188cfec659f1f29852dcc932c8 (diff) |
SL-11545
Fix glow calcs in sky shaders (not just the not shared enough atmospherics funcs).
Revert 10625 attempted fix as it breaks baggy clothes as much as skipping readbacks does.
Diffstat (limited to 'indra/newview/app_settings/shaders/class1/deferred/skyV.glsl')
-rw-r--r-- | indra/newview/app_settings/shaders/class1/deferred/skyV.glsl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class1/deferred/skyV.glsl b/indra/newview/app_settings/shaders/class1/deferred/skyV.glsl index c3b046552c..5ce246a114 100644 --- a/indra/newview/app_settings/shaders/class1/deferred/skyV.glsl +++ b/indra/newview/app_settings/shaders/class1/deferred/skyV.glsl @@ -121,7 +121,7 @@ void main() // temp2.x is 0 at the sun and increases away from sun temp2.x = max(temp2.x, .001); // Set a minimum "angle" (smaller glow.y allows tighter, brighter hotspot) - temp2.x *= glow.x * 0.33333; + temp2.x *= glow.x; // Higher glow.x gives dimmer glow (because next step is 1 / "angle") temp2.x = pow(temp2.x, glow.z); // glow.z should be negative, so we're doing a sort of (1 / "angle") function |