summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class2/windlight/skyV.glsl
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-07-03 10:04:05 -0700
committerGraham Linden <graham@lindenlab.com>2019-07-03 10:04:05 -0700
commit48f169423ba0c1da8ffe13fc8bc4cec76336d8fc (patch)
treeb98913a1c97fa68a5e7d892839c01b1db34c4e15 /indra/newview/app_settings/shaders/class2/windlight/skyV.glsl
parent7e5000bb64ca8eea3fe188ebb7bccff3bdfa82e7 (diff)
SL-11545, SL-11543, SL-10625
Fix emissives without normal maps clobbering the alpha output in materialF. Modify glow size calc to get close to pre-EEP sun glow behavior (may require sky vert settings >= mid). Make bake ignore alpha readback for Intel until we can determine why their drivers now go boom.
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/windlight/skyV.glsl')
-rw-r--r--indra/newview/app_settings/shaders/class2/windlight/skyV.glsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/newview/app_settings/shaders/class2/windlight/skyV.glsl b/indra/newview/app_settings/shaders/class2/windlight/skyV.glsl
index d81a8feb96..57ad8a92e5 100644
--- a/indra/newview/app_settings/shaders/class2/windlight/skyV.glsl
+++ b/indra/newview/app_settings/shaders/class2/windlight/skyV.glsl
@@ -119,7 +119,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;
+ temp2.x *= glow.x * 0.333333;
// 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