summaryrefslogtreecommitdiff
path: root/indra/newview/llvowlsky.cpp
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2018-10-29 23:02:20 +0100
committerGraham Linden <graham@lindenlab.com>2018-10-29 23:02:20 +0100
commit536799d07e4298ff8157ef51ed00040e10a5ba65 (patch)
tree3f9322b25efd552a4d4b1c617b39b81136d1b084 /indra/newview/llvowlsky.cpp
parente9faa3cce8897af2a4303538672e2262ed39520a (diff)
SL-9977
SL-9973
Diffstat (limited to 'indra/newview/llvowlsky.cpp')
-rw-r--r--indra/newview/llvowlsky.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/newview/llvowlsky.cpp b/indra/newview/llvowlsky.cpp
index b4b6bb252f..570273e62c 100644
--- a/indra/newview/llvowlsky.cpp
+++ b/indra/newview/llvowlsky.cpp
@@ -104,9 +104,10 @@ inline F32 LLVOWLSky::calcPhi(U32 i)
// i should range from [0..SKY_STACKS] so t will range from [0.f .. 1.f]
F32 t = float(i) / float(getNumStacks());
- // ^2 the parameter of the tesselation to bias things toward 0 (the dome's apex)
+ // ^4 the parameter of the tesselation to bias things toward 0 (the dome's apex)
t *= t;
-
+ t *= t;
+
// invert and square the parameter of the tesselation to bias things toward 1 (the horizon)
t = 1.f - t;
t = t*t;