mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
add shadows in examples (#3201)
# Objective - As mentioned in #3126, shadows need to be readded in examples ## Solution - Add shadows in examples
This commit is contained in:
parent
7ced541cb2
commit
e8412df021
4 changed files with 9 additions and 0 deletions
|
@ -117,6 +117,7 @@ fn setup(
|
|||
point_light: PointLight {
|
||||
intensity: 1600.0, // lumens - roughly a 100W non-halogen incandescent bulb
|
||||
color: Color::RED,
|
||||
shadows_enabled: true,
|
||||
..Default::default()
|
||||
},
|
||||
..Default::default()
|
||||
|
@ -144,6 +145,7 @@ fn setup(
|
|||
point_light: PointLight {
|
||||
intensity: 1600.0, // lumens - roughly a 100W non-halogen incandescent bulb
|
||||
color: Color::GREEN,
|
||||
shadows_enabled: true,
|
||||
..Default::default()
|
||||
},
|
||||
..Default::default()
|
||||
|
@ -171,6 +173,7 @@ fn setup(
|
|||
point_light: PointLight {
|
||||
intensity: 1600.0, // lumens - roughly a 100W non-halogen incandescent bulb
|
||||
color: Color::BLUE,
|
||||
shadows_enabled: true,
|
||||
..Default::default()
|
||||
},
|
||||
..Default::default()
|
||||
|
@ -204,6 +207,7 @@ fn setup(
|
|||
far: 10.0 * HALF_SIZE,
|
||||
..Default::default()
|
||||
},
|
||||
shadows_enabled: true,
|
||||
..Default::default()
|
||||
},
|
||||
transform: Transform {
|
||||
|
|
|
@ -41,6 +41,7 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
|
|||
far: 10.0 * HALF_SIZE,
|
||||
..Default::default()
|
||||
},
|
||||
shadows_enabled: true,
|
||||
..Default::default()
|
||||
},
|
||||
..Default::default()
|
||||
|
|
|
@ -69,6 +69,7 @@ fn setup(
|
|||
color: Color::WHITE,
|
||||
shadow_depth_bias: 0.0,
|
||||
shadow_normal_bias: 0.0,
|
||||
shadows_enabled: true,
|
||||
..Default::default()
|
||||
},
|
||||
..Default::default()
|
||||
|
@ -90,6 +91,7 @@ fn setup(
|
|||
},
|
||||
shadow_depth_bias: 0.0,
|
||||
shadow_normal_bias: 0.0,
|
||||
shadows_enabled: true,
|
||||
..Default::default()
|
||||
},
|
||||
transform: Transform::from_matrix(light_transform),
|
||||
|
|
|
@ -93,6 +93,7 @@ fn setup(
|
|||
intensity: 0.0,
|
||||
range: spawn_plane_depth,
|
||||
color: Color::WHITE,
|
||||
shadows_enabled: true,
|
||||
..Default::default()
|
||||
},
|
||||
..Default::default()
|
||||
|
@ -112,6 +113,7 @@ fn setup(
|
|||
far: 50.0,
|
||||
..Default::default()
|
||||
},
|
||||
shadows_enabled: true,
|
||||
..Default::default()
|
||||
},
|
||||
transform: Transform::from_matrix(light_transform),
|
||||
|
|
Loading…
Reference in a new issue