Fix shadow_biases example (#18303)

Fix moire artifacts in https://github.com/bevyengine/bevy/issues/16635.

Default directional light biases are overkill but it's fine.
This commit is contained in:
JMS55 2025-03-14 12:50:49 -07:00 committed by GitHub
parent c2854a2a05
commit cb3e6a88dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,14 +52,10 @@ fn setup(
intensity: 0.0,
range: spawn_plane_depth,
color: Color::WHITE,
shadow_depth_bias: 0.0,
shadow_normal_bias: 0.0,
shadows_enabled: true,
..default()
});
builder.spawn(DirectionalLight {
shadow_depth_bias: 0.0,
shadow_normal_bias: 0.0,
shadows_enabled: true,
..default()
});