diff options
author | Jacek Antonelli | 2008-08-15 23:44:48 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:44:48 -0500 |
commit | 9b4f54c826ffa4f94efa866068c9d6ecdfb4b424 (patch) | |
tree | 2f8ae193ab487088962e628f1ee9dee2f5901f01 /linden/indra/newview/llvostars.cpp | |
parent | Second Life viewer sources 1.13.2.12 (diff) | |
download | meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.zip meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.gz meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.bz2 meta-impy-9b4f54c826ffa4f94efa866068c9d6ecdfb4b424.tar.xz |
Second Life viewer sources 1.13.2.15
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llvostars.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/linden/indra/newview/llvostars.cpp b/linden/indra/newview/llvostars.cpp index d20c5da..3fd3b91 100644 --- a/linden/indra/newview/llvostars.cpp +++ b/linden/indra/newview/llvostars.cpp | |||
@@ -125,19 +125,19 @@ void LLVOStars::initStars() | |||
125 | U32 i; | 125 | U32 i; |
126 | for (i = 0; i < NUMBER_OF_STARS; i++ ) | 126 | for (i = 0; i < NUMBER_OF_STARS; i++ ) |
127 | { | 127 | { |
128 | v_p->mV[VX] = frand(1.f) - 0.5f; | 128 | v_p->mV[VX] = ll_frand() - 0.5f; |
129 | v_p->mV[VY] = frand(1.f) - 0.5f; | 129 | v_p->mV[VY] = ll_frand() - 0.5f; |
130 | 130 | ||
131 | // we only want stars on the top half of the dome! | 131 | // we only want stars on the top half of the dome! |
132 | 132 | ||
133 | v_p->mV[VZ] = frand(1.f)/2.f; | 133 | v_p->mV[VZ] = ll_frand()/2.f; |
134 | 134 | ||
135 | v_p->normVec(); | 135 | v_p->normVec(); |
136 | *v_p *= DISTANCE_TO_STARS; | 136 | *v_p *= DISTANCE_TO_STARS; |
137 | *v_i = llmin((F32)pow(frand(1.f),2.f) + 0.1f, 1.f); | 137 | *v_i = llmin((F32)pow(ll_frand(),2.f) + 0.1f, 1.f); |
138 | v_c->mV[VRED] = 0.75f + frand(1.f) * 0.25f ; | 138 | v_c->mV[VRED] = 0.75f + ll_frand() * 0.25f ; |
139 | v_c->mV[VGREEN] = 1.f ; | 139 | v_c->mV[VGREEN] = 1.f ; |
140 | v_c->mV[VBLUE] = 0.75f + frand(1.f) * 0.25f ; | 140 | v_c->mV[VBLUE] = 0.75f + ll_frand() * 0.25f ; |
141 | v_c->mV[VALPHA] = 1.f; | 141 | v_c->mV[VALPHA] = 1.f; |
142 | v_c->clamp(); | 142 | v_c->clamp(); |
143 | v_p++; | 143 | v_p++; |
@@ -179,7 +179,7 @@ void LLVOStars::updateStarColors() | |||
179 | sundir_factor = (1 - how_close_to_sun) / sunclose_range; | 179 | sundir_factor = (1 - how_close_to_sun) / sunclose_range; |
180 | } | 180 | } |
181 | intensity = *(v_i); | 181 | intensity = *(v_i); |
182 | F32 alpha = v_c->mV[VALPHA] + (frand(1.f) - 0.5f) * var * intensity; | 182 | F32 alpha = v_c->mV[VALPHA] + (ll_frand() - 0.5f) * var * intensity; |
183 | if (alpha < min * intensity) | 183 | if (alpha < min * intensity) |
184 | { | 184 | { |
185 | alpha = min * intensity; | 185 | alpha = min * intensity; |