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) {