From 04527dfdd5b9f7d61a12e3af34e8066d747fcca2 Mon Sep 17 00:00:00 2001 From: IceSentry Date: Wed, 30 Aug 2023 20:45:29 -0400 Subject: [PATCH] clarify comment --- crates/bevy_pbr/src/render/mesh.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/bevy_pbr/src/render/mesh.rs b/crates/bevy_pbr/src/render/mesh.rs index a004bce2e0ee50..9b17636ad05f4e 100644 --- a/crates/bevy_pbr/src/render/mesh.rs +++ b/crates/bevy_pbr/src/render/mesh.rs @@ -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,