From c2216c27a10fd425c57d2c2dc01413a16a02fcbf Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 2 Apr 2026 20:50:57 +0200 Subject: [PATCH] Ensure placeholders and selection shells ignore shadows --- src/assets/model-instance-rendering.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/assets/model-instance-rendering.ts b/src/assets/model-instance-rendering.ts index b2be90bf..17799b4c 100644 --- a/src/assets/model-instance-rendering.ts +++ b/src/assets/model-instance-rendering.ts @@ -136,12 +136,14 @@ export function createModelInstanceRenderGroup( } else { const placeholder = createWireframeBox(bounds.size, MODEL_PLACEHOLDER_COLOR, 0.28); placeholder.position.set(bounds.center.x, bounds.center.y, bounds.center.z); + placeholder.userData.shadowIgnored = true; group.add(placeholder); } if (selected) { const selectionShell = createWireframeBox(bounds.size, MODEL_SELECTION_COLOR, 0.8); selectionShell.position.set(bounds.center.x, bounds.center.y, bounds.center.z); + selectionShell.userData.shadowIgnored = true; group.add(selectionShell); }