From 0645181f944bcb09be889ae4644c731be24c2882 Mon Sep 17 00:00:00 2001 From: Graham Linden Date: Tue, 30 Oct 2018 00:17:14 +0100 Subject: Merge --- indra/newview/llvowlsky.cpp | 5 +++-- 1 file 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; -- cgit v1.2.3