DRTVWR-497 Cleanup: Summarize calcPhi equation

master
Ptolemy 2020-06-29 11:56:32 -07:00
parent 528a4bc6a1
commit 7ad05093b8
1 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,9 @@ LLDrawable * LLVOWLSky::createDrawable(LLPipeline * pipeline)
inline F32 LLVOWLSky::calcPhi(U32 i)
{
// Calc: PI/8 * 1-((1-t^4)*(1-t^4)) { 0<t<1 }
// Demos: \pi/8*\left(1-((1-x^{4})*(1-x^{4}))\right)\ \left\{0<x\le1\right\}
// i should range from [0..SKY_STACKS] so t will range from [0.f .. 1.f]
F32 t = float(i) / float(getNumStacks());