From 4984146f6e8668734783f6aa1fc337479621e552 Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Thu, 23 Apr 2026 17:26:40 +0900 Subject: [PATCH] Update issyoubin.ts --- .../frontend/src/world/room/objects/issyoubin.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/frontend/src/world/room/objects/issyoubin.ts b/packages/frontend/src/world/room/objects/issyoubin.ts index b26ea943bf..77891a137f 100644 --- a/packages/frontend/src/world/room/objects/issyoubin.ts +++ b/packages/frontend/src/world/room/objects/issyoubin.ts @@ -18,12 +18,14 @@ export const issyoubin = defineObject({ placement: 'top', hasCollisions: false, hasTexture: true, - createInstance: ({ model, options }) => { - for (const m of model.root.getChildMeshes()) { - if (m.material != null) { - (m.material as BABYLON.PBRMaterial).separateCullingPass = true; - } - } + createInstance: ({ model, options, scene }) => { + // 以下を行うとレンダリングのグリッチが直るが、残念ながらWebGPUかつNCMでは動作しない + // https://doc.babylonjs.com/setup/support/webGPU/webGPUOptimization/webGPUNonCompatibilityMode/#dodont-in-non-compatibility-mode-ncm + //for (const m of model.root.getChildMeshes()) { + // if (m.material != null) { + // (m.material as BABYLON.PBRMaterial).separateCullingPass = true; + // } + //} return { onOptionsUpdated: ([k, v]) => { },