summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2018-10-30 00:17:14 +0100
committerGraham Linden <graham@lindenlab.com>2018-10-30 00:17:14 +0100
commit0645181f944bcb09be889ae4644c731be24c2882 (patch)
treed596327ca5bd36dc160efa85177c7e03f1a5c133
parent48e751d3973c365f82f77590a490afeb00d607d3 (diff)
Merge
-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;