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