From 8c72ae2d49965aa5ad9d25861ae1d35b4c6fe3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Wed, 28 Dec 2022 09:14:45 +0100 Subject: [PATCH] pass the correct view entity --- crates/bevy_pbr/src/render/light.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/crates/bevy_pbr/src/render/light.rs b/crates/bevy_pbr/src/render/light.rs index a499511602693..e9baee72281d3 100644 --- a/crates/bevy_pbr/src/render/light.rs +++ b/crates/bevy_pbr/src/render/light.rs @@ -1785,7 +1785,13 @@ impl Node for ShadowPassNode { }), }; - shadow_phase.render(world, render_context, view_entity, None, pass_descriptor); + shadow_phase.render( + world, + render_context, + view_light_entity, + None, + pass_descriptor, + ); } }