Skip to content

Commit

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

- Fixes bevyengine#7047 

## Solution

- Pass the correct view entity
  • Loading branch information
mockersf authored and ItsDoot committed Feb 1, 2023
1 parent 76e26f4 commit 3cca041
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 3cca041

Please sign in to comment.