From 3d48146b927e09302ed7be6c5898815029e041bc Mon Sep 17 00:00:00 2001 From: syuilo <4439005+syuilo@users.noreply.github.com> Date: Thu, 16 Apr 2026 15:40:48 +0900 Subject: [PATCH] Update engine.ts --- packages/frontend/src/utility/room/engine.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/frontend/src/utility/room/engine.ts b/packages/frontend/src/utility/room/engine.ts index 2ec212c1c9..29ab5d8162 100644 --- a/packages/frontend/src/utility/room/engine.ts +++ b/packages/frontend/src/utility/room/engine.ts @@ -559,6 +559,7 @@ export class RoomEngine extends EventEmitter { this.scene.autoClear = false; //this.scene.autoClearDepthAndStencil = false; this.scene.skipPointerMovePicking = true; + this.scene.skipFrustumClipping = true; // snapshot renderingでは全てのメッシュがアクティブになっている必要があるため this.sr = new BABYLON.SnapshotRenderingHelper(this.scene); @@ -1142,8 +1143,6 @@ export class RoomEngine extends EventEmitter { continue; } - if (SNAPSHOT_RENDERING) m.alwaysSelectAsActiveMesh = true; - m.isPickable = false; m.checkCollisions = false; m.receiveShadows = true; @@ -1380,10 +1379,6 @@ export class RoomEngine extends EventEmitter { this.shadowGeneratorForSunLight.addShadowCaster(mesh); } - if (SNAPSHOT_RENDERING) { - mesh.alwaysSelectAsActiveMesh = true; - } - //if (mesh.material) (mesh.material as BABYLON.PBRMaterial).ambientColor = new BABYLON.Color3(0.2, 0.2, 0.2); if (mesh.material) { if (mesh.material instanceof BABYLON.MultiMaterial) {