Ensure placeholders and selection shells ignore shadows

This commit is contained in:
2026-04-02 20:50:57 +02:00
parent a5d4c2b983
commit c2216c27a1

View File

@@ -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);
}