place stars ~105 lightyears away from the player, should be enough...
This commit is contained in:
parent
8cd970a930
commit
0c2c295f6b
|
@ -134,7 +134,7 @@ pub fn setup(
|
||||||
40000.0f32
|
40000.0f32
|
||||||
} else {
|
} else {
|
||||||
1000.0 * (0.230299 * mag * mag - 3.09013 * mag + 15.1782)
|
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 (r, g, b) = nature::star_color_index_to_rgb(star.4);
|
||||||
let star_color_handle = materials.add(StandardMaterial {
|
let star_color_handle = materials.add(StandardMaterial {
|
||||||
|
@ -142,7 +142,7 @@ pub fn setup(
|
||||||
unlit: true,
|
unlit: true,
|
||||||
..default()
|
..default()
|
||||||
});
|
});
|
||||||
let mesh_distance = 1e9;
|
let mesh_distance = 1e18;
|
||||||
let starchart_distance = if is_sun {
|
let starchart_distance = if is_sun {
|
||||||
Some(nature::DIST_JUPTER_SUN)
|
Some(nature::DIST_JUPTER_SUN)
|
||||||
} else if star.5 >= 100000.0 {
|
} else if star.5 >= 100000.0 {
|
||||||
|
|
Loading…
Reference in a new issue