place stars ~105 lightyears away from the player, should be enough...

This commit is contained in:
yuni 2024-04-18 23:13:45 +02:00
parent 8cd970a930
commit 0c2c295f6b

View file

@ -134,7 +134,7 @@ pub fn setup(
40000.0f32
} else {
1000.0 * (0.230299 * mag * mag - 3.09013 * mag + 15.1782)
} * 100.0
} * 1e11
};
let (r, g, b) = nature::star_color_index_to_rgb(star.4);
let star_color_handle = materials.add(StandardMaterial {
@ -142,7 +142,7 @@ pub fn setup(
unlit: true,
..default()
});
let mesh_distance = 1e9;
let mesh_distance = 1e18;
let starchart_distance = if is_sun {
Some(nature::DIST_JUPTER_SUN)
} else if star.5 >= 100000.0 {