From 3c317111d3a0eca9e8e7bc2d114570d328c4ed3f Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 14 Apr 2024 22:31:10 +0200 Subject: [PATCH] cut off star magnitude above 6.0 for brightness/size calculations --- src/world.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/world.rs b/src/world.rs index 6dc2b9b..0f9cafc 100644 --- a/src/world.rs +++ b/src/world.rs @@ -134,6 +134,7 @@ pub fn setup( continue; } let is_sun = mag < -20.0; + let mag = mag.min(6.0); let scale_color = {|color: f32| if is_sun { color * 13.0f32