From 1514fb5b02fd3448b218234a397c3b66bd1afb84 Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 16 Mar 2024 23:52:26 +0100 Subject: [PATCH] sphere -> large moon far away, eclipsing the sun --- src/world.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/world.rs b/src/world.rs index b508d25..c1db189 100644 --- a/src/world.rs +++ b/src/world.rs @@ -40,7 +40,7 @@ pub fn setup( }); // Add spheres - let sphere_radius = 1.0; + let sphere_radius = 50.0; let sphere_handle = meshes.add(Sphere::new(sphere_radius)); let white_handle = materials.add(StandardMaterial { base_color: Color::GRAY, @@ -52,8 +52,8 @@ pub fn setup( material: white_handle.clone(), transform: Transform::from_xyz( 0.0, - sphere_radius, 0.0, + -2000.0, ), ..default() }); @@ -65,14 +65,14 @@ pub fn setup( commands.spawn(DirectionalLightBundle { directional_light: DirectionalLight { illuminance: 1000.0, - shadows_enabled: true, + shadows_enabled: false, ..default() }, transform: Transform::from_rotation(Quat::from_euler( EulerRot::ZYX, 0.0, - PI / 1., - -PI / 4., + PI / 1.0, + -PI / 5.0, )), cascade_shadow_config: CascadeShadowConfigBuilder { first_cascade_far_bound: 7.0,