summaryrefslogtreecommitdiff
path: root/indra/newview/app_settings/shaders/class2/deferred
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2019-06-19 13:01:06 -0700
committerGraham Linden <graham@lindenlab.com>2019-06-19 13:01:06 -0700
commitc1d1d7968325403a8033fa79567f07345c49b0a8 (patch)
treeb9a6b2998ea741724d3c58dbc498dad8848de9f1 /indra/newview/app_settings/shaders/class2/deferred
parent7f24395889832c9ce51bae69054c7d081d77f65a (diff)
Sky fixes.
Make class1 sky use pre-projection pos to get proper distances for attenuation. Make all sky shaders use the dist_mul again. Revert to using old sky tessellation logic (may regress bugs addressed by new tess code).
Diffstat (limited to 'indra/newview/app_settings/shaders/class2/deferred')
-rw-r--r--indra/newview/app_settings/shaders/class2/deferred/skyF.glsl3
1 files changed, 1 insertions, 2 deletions
diff --git a/indra/newview/app_settings/shaders/class2/deferred/skyF.glsl b/indra/newview/app_settings/shaders/class2/deferred/skyF.glsl
index 889a989985..3bdcf28363 100644
--- a/indra/newview/app_settings/shaders/class2/deferred/skyF.glsl
+++ b/indra/newview/app_settings/shaders/class2/deferred/skyF.glsl
@@ -141,8 +141,7 @@ void main()
// Transparency (-> temp1)
// ATI Bugfix -- can't store temp1*temp2.z in a variable because the ati
// compiler gets confused.
- //temp1 = exp(-temp1 * temp2.z * dist_mul);
- temp1 = exp(-temp1 * dist_mul);
+ temp1 = exp(-temp1 * temp2.z * dist_mul);
// Compute haze glow
temp2.x = dot(Pn, lightnorm.xyz);