Skip to content

Commit

Permalink
Shadow render phase - pass the correct view entity (#7048)
Browse files Browse the repository at this point in the history
# Objective

- Fixes #7047 

## Solution

- Pass the correct view entity
  • Loading branch information
mockersf committed Dec 28, 2022
1 parent 2665299 commit 61e027e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/bevy_pbr/src/render/light.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
);
}
}

Expand Down

0 comments on commit 61e027e

Please sign in to comment.