optimization
This commit is contained in:
parent
55f0c6c607
commit
db6f9a1548
|
@ -125,10 +125,10 @@ pub fn setup(
|
||||||
let mut starcount = 0;
|
let mut starcount = 0;
|
||||||
for star in stars::STARS {
|
for star in stars::STARS {
|
||||||
let mag = star.3;
|
let mag = star.3;
|
||||||
let is_sun = mag < -20.0;
|
|
||||||
if mag > STARS_MAX_MAGNITUDE {
|
if mag > STARS_MAX_MAGNITUDE {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
let is_sun = mag < -20.0;
|
||||||
let scale_color = {|color: f32|
|
let scale_color = {|color: f32|
|
||||||
if is_sun {
|
if is_sun {
|
||||||
color * 13.0f32
|
color * 13.0f32
|
||||||
|
|
Loading…
Reference in a new issue