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
					
				| @ -117,6 +117,7 @@ fn setup( | |||||||
|             point_light: PointLight { |             point_light: PointLight { | ||||||
|                 intensity: 1600.0, // lumens - roughly a 100W non-halogen incandescent bulb
 |                 intensity: 1600.0, // lumens - roughly a 100W non-halogen incandescent bulb
 | ||||||
|                 color: Color::RED, |                 color: Color::RED, | ||||||
|  |                 shadows_enabled: true, | ||||||
|                 ..Default::default() |                 ..Default::default() | ||||||
|             }, |             }, | ||||||
|             ..Default::default() |             ..Default::default() | ||||||
| @ -144,6 +145,7 @@ fn setup( | |||||||
|             point_light: PointLight { |             point_light: PointLight { | ||||||
|                 intensity: 1600.0, // lumens - roughly a 100W non-halogen incandescent bulb
 |                 intensity: 1600.0, // lumens - roughly a 100W non-halogen incandescent bulb
 | ||||||
|                 color: Color::GREEN, |                 color: Color::GREEN, | ||||||
|  |                 shadows_enabled: true, | ||||||
|                 ..Default::default() |                 ..Default::default() | ||||||
|             }, |             }, | ||||||
|             ..Default::default() |             ..Default::default() | ||||||
| @ -171,6 +173,7 @@ fn setup( | |||||||
|             point_light: PointLight { |             point_light: PointLight { | ||||||
|                 intensity: 1600.0, // lumens - roughly a 100W non-halogen incandescent bulb
 |                 intensity: 1600.0, // lumens - roughly a 100W non-halogen incandescent bulb
 | ||||||
|                 color: Color::BLUE, |                 color: Color::BLUE, | ||||||
|  |                 shadows_enabled: true, | ||||||
|                 ..Default::default() |                 ..Default::default() | ||||||
|             }, |             }, | ||||||
|             ..Default::default() |             ..Default::default() | ||||||
| @ -204,6 +207,7 @@ fn setup( | |||||||
|                 far: 10.0 * HALF_SIZE, |                 far: 10.0 * HALF_SIZE, | ||||||
|                 ..Default::default() |                 ..Default::default() | ||||||
|             }, |             }, | ||||||
|  |             shadows_enabled: true, | ||||||
|             ..Default::default() |             ..Default::default() | ||||||
|         }, |         }, | ||||||
|         transform: Transform { |         transform: Transform { | ||||||
|  | |||||||
| @ -41,6 +41,7 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) { | |||||||
|                 far: 10.0 * HALF_SIZE, |                 far: 10.0 * HALF_SIZE, | ||||||
|                 ..Default::default() |                 ..Default::default() | ||||||
|             }, |             }, | ||||||
|  |             shadows_enabled: true, | ||||||
|             ..Default::default() |             ..Default::default() | ||||||
|         }, |         }, | ||||||
|         ..Default::default() |         ..Default::default() | ||||||
|  | |||||||
| @ -69,6 +69,7 @@ fn setup( | |||||||
|             color: Color::WHITE, |             color: Color::WHITE, | ||||||
|             shadow_depth_bias: 0.0, |             shadow_depth_bias: 0.0, | ||||||
|             shadow_normal_bias: 0.0, |             shadow_normal_bias: 0.0, | ||||||
|  |             shadows_enabled: true, | ||||||
|             ..Default::default() |             ..Default::default() | ||||||
|         }, |         }, | ||||||
|         ..Default::default() |         ..Default::default() | ||||||
| @ -90,6 +91,7 @@ fn setup( | |||||||
|             }, |             }, | ||||||
|             shadow_depth_bias: 0.0, |             shadow_depth_bias: 0.0, | ||||||
|             shadow_normal_bias: 0.0, |             shadow_normal_bias: 0.0, | ||||||
|  |             shadows_enabled: true, | ||||||
|             ..Default::default() |             ..Default::default() | ||||||
|         }, |         }, | ||||||
|         transform: Transform::from_matrix(light_transform), |         transform: Transform::from_matrix(light_transform), | ||||||
|  | |||||||
| @ -93,6 +93,7 @@ fn setup( | |||||||
|             intensity: 0.0, |             intensity: 0.0, | ||||||
|             range: spawn_plane_depth, |             range: spawn_plane_depth, | ||||||
|             color: Color::WHITE, |             color: Color::WHITE, | ||||||
|  |             shadows_enabled: true, | ||||||
|             ..Default::default() |             ..Default::default() | ||||||
|         }, |         }, | ||||||
|         ..Default::default() |         ..Default::default() | ||||||
| @ -112,6 +113,7 @@ fn setup( | |||||||
|                 far: 50.0, |                 far: 50.0, | ||||||
|                 ..Default::default() |                 ..Default::default() | ||||||
|             }, |             }, | ||||||
|  |             shadows_enabled: true, | ||||||
|             ..Default::default() |             ..Default::default() | ||||||
|         }, |         }, | ||||||
|         transform: Transform::from_matrix(light_transform), |         transform: Transform::from_matrix(light_transform), | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 François
						François