Skip to content

Commit

Permalink
Misc tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
JMS55 committed Mar 2, 2023
1 parent c416630 commit 51631c0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions crates/bevy_pbr/src/prepass/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -352,16 +352,15 @@ where
blend: Some(BlendState::REPLACE),
write_mask: ColorWrites::ALL,
}));
} else if key
.mesh_key
.contains(MeshPipelineKey::MOTION_VECTOR_PREPASS)
{
targets.push(None);
}
if key
.mesh_key
.contains(MeshPipelineKey::MOTION_VECTOR_PREPASS)
{
if !key.mesh_key.contains(MeshPipelineKey::NORMAL_PREPASS) {
targets.push(None);
}

targets.push(Some(ColorTargetState {
format: MOTION_VECTOR_PREPASS_FORMAT,
blend: Some(BlendState::REPLACE),
Expand Down

0 comments on commit 51631c0

Please sign in to comment.