Change render_layers example to use point lighting since Bevy 0.8 bug is fixed.
This commit is contained in:
parent
b414243baa
commit
a50107426b
|
@ -66,9 +66,14 @@ fn setup(
|
|||
material: materials.add(Color::rgb(0.3, 0.5, 0.3).into()),
|
||||
..default()
|
||||
});
|
||||
commands.insert_resource(AmbientLight {
|
||||
color: Color::WHITE,
|
||||
brightness: 1.0,
|
||||
commands.spawn(PointLightBundle {
|
||||
point_light: PointLight {
|
||||
intensity: 1500.0,
|
||||
shadows_enabled: true,
|
||||
..default()
|
||||
},
|
||||
transform: Transform::from_xyz(4.0, 8.0, 4.0),
|
||||
..default()
|
||||
});
|
||||
|
||||
// Add cameras for different combinations of render-layers
|
||||
|
|
Loading…
Reference in New Issue