Apply renderer render categories to model groups and NPCs.

This commit is contained in:
2026-04-26 05:34:52 +02:00
parent 97ffd899a2
commit 04f136b3a7

View File

@@ -4110,6 +4110,7 @@ export class RuntimeHost {
false
);
renderGroup.visible = modelInstance.visible;
applyRendererRenderCategoryFromMaterial(renderGroup);
this.modelGroup.add(renderGroup);
this.modelRenderObjects.set(modelInstance.instanceId, renderGroup);
@@ -4181,6 +4182,7 @@ export class RuntimeHost {
false
);
renderGroup.visible = npc.visible && npc.active;
applyRendererRenderCategoryFromMaterial(renderGroup);
this.modelGroup.add(renderGroup);
this.modelRenderObjects.set(npc.entityId, renderGroup);