optimization

This commit is contained in:
yuni 2024-04-08 01:14:08 +02:00
parent 55f0c6c607
commit db6f9a1548

View file

@ -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