Skip to content

Commit

Permalink
clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
IceSentry committed Aug 31, 2023
1 parent 470aab6 commit 04527df
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/bevy_pbr/src/render/mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,8 @@ impl SpecializedMeshPipeline for MeshPipeline {
}

if key.contains(MeshPipelineKey::MESH_ID_TEXTURE_TARGET) {
// we need to add the target even if the mesh isn't pickable
// Event if GPU_PICKING is not in the key we still need to add the target.
// This is important because the target is for all meshes not just pickable meshes.
targets.push(Some(ColorTargetState {
format: MESH_ID_TEXTURE_FORMAT,
blend: None,
Expand Down

0 comments on commit 04527df

Please sign in to comment.