Apply overlay rendering category to viewport elements

This commit is contained in:
2026-04-26 05:33:58 +02:00
parent d754cbec6f
commit 2b4baa5386

View File

@@ -5640,6 +5640,7 @@ export class ViewportHost {
}); });
} }
applyRendererRenderCategory(this.pathGroup, "overlay");
this.refreshPathPresentation(); this.refreshPathPresentation();
} }
@@ -5832,6 +5833,7 @@ export class ViewportHost {
this.applyWireframePresentation(renderObjects.group); this.applyWireframePresentation(renderObjects.group);
} }
applyRendererRenderCategory(renderObjects.group, "overlay");
this.entityGroup.add(renderObjects.group); this.entityGroup.add(renderObjects.group);
this.entityRenderObjects.set(entity.id, renderObjects); this.entityRenderObjects.set(entity.id, renderObjects);
} }
@@ -5903,13 +5905,17 @@ export class ViewportHost {
); );
if (generatedCollider !== null) { if (generatedCollider !== null) {
renderGroup.add(createModelColliderDebugGroup(generatedCollider)); const colliderDebugGroup =
createModelColliderDebugGroup(generatedCollider);
applyRendererRenderCategory(colliderDebugGroup, "overlay");
renderGroup.add(colliderDebugGroup);
} }
} catch { } catch {
// Validation surfaces unsupported collider modes; the viewport keeps rendering the model. // Validation surfaces unsupported collider modes; the viewport keeps rendering the model.
} }
} }
applyRendererRenderCategoryFromMaterial(renderGroup);
this.modelGroup.add(renderGroup); this.modelGroup.add(renderGroup);
this.modelRenderObjects.set(modelInstance.id, renderGroup); this.modelRenderObjects.set(modelInstance.id, renderGroup);
} }