Apply overlay rendering category to viewport elements
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user