From 04f136b3a77f86a782581e271ea665767f2437ec Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Sun, 26 Apr 2026 05:34:52 +0200 Subject: [PATCH] Apply renderer render categories to model groups and NPCs. --- src/runtime-three/runtime-host.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index 667d6c1f..ee4ea1cd 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -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);