Ensure placeholders and selection shells ignore shadows
This commit is contained in:
@@ -136,12 +136,14 @@ export function createModelInstanceRenderGroup(
|
|||||||
} else {
|
} else {
|
||||||
const placeholder = createWireframeBox(bounds.size, MODEL_PLACEHOLDER_COLOR, 0.28);
|
const placeholder = createWireframeBox(bounds.size, MODEL_PLACEHOLDER_COLOR, 0.28);
|
||||||
placeholder.position.set(bounds.center.x, bounds.center.y, bounds.center.z);
|
placeholder.position.set(bounds.center.x, bounds.center.y, bounds.center.z);
|
||||||
|
placeholder.userData.shadowIgnored = true;
|
||||||
group.add(placeholder);
|
group.add(placeholder);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (selected) {
|
if (selected) {
|
||||||
const selectionShell = createWireframeBox(bounds.size, MODEL_SELECTION_COLOR, 0.8);
|
const selectionShell = createWireframeBox(bounds.size, MODEL_SELECTION_COLOR, 0.8);
|
||||||
selectionShell.position.set(bounds.center.x, bounds.center.y, bounds.center.z);
|
selectionShell.position.set(bounds.center.x, bounds.center.y, bounds.center.z);
|
||||||
|
selectionShell.userData.shadowIgnored = true;
|
||||||
group.add(selectionShell);
|
group.add(selectionShell);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user