atmosphere: make Jupiter 0.5% smaller, so u still see it as u dive in

This commit is contained in:
yuni 2024-11-29 19:55:04 +01:00
parent 5dd2936e52
commit fc5592575c

View file

@ -1307,6 +1307,8 @@ fn spawn_entities(
let state = &state_wrapper.0;
let mut rotation = state.rotation;
let is_jupiter = state.id == ID_JUPITER;
// Preprocessing
let mut absolute_pos = if let Some(id) = &state.relative_to {
match id2pos.0.get(&id.to_string()) {
@ -1389,7 +1391,8 @@ fn spawn_entities(
None
};
rotation = Quat::from_rotation_x(-90f32.to_radians()) * rotation;
let sphere_handle = meshes.add(Sphere::new(1.0).mesh().uv(128, 128));
let radius = if is_jupiter { 0.995 } else { 1.0 };
let sphere_handle = meshes.add(Sphere::new(radius).mesh().uv(128, 128));
let sphere_material_handle = materials.add(StandardMaterial {
base_color_texture: sphere_texture_handle,
perceptual_roughness: 1.0,