cut off star magnitude above 6.0 for brightness/size calculations

This commit is contained in:
yuni 2024-04-14 22:31:10 +02:00
parent 69fb360229
commit 3c317111d3

View file

@ -134,6 +134,7 @@ pub fn setup(
continue; continue;
} }
let is_sun = mag < -20.0; let is_sun = mag < -20.0;
let mag = mag.min(6.0);
let scale_color = {|color: f32| let scale_color = {|color: f32|
if is_sun { if is_sun {
color * 13.0f32 color * 13.0f32