diff --git a/packages/frontend/src/utility/room/engine.ts b/packages/frontend/src/utility/room/engine.ts index 946bd11e4e..2ec212c1c9 100644 --- a/packages/frontend/src/utility/room/engine.ts +++ b/packages/frontend/src/utility/room/engine.ts @@ -645,9 +645,6 @@ export class RoomEngine extends EventEmitter { }); gl.intensity = 0.5; - // for improving performance - this.scene.setRenderingAutoClearDepthStencil(gl.renderingGroupId, false); - if (SNAPSHOT_RENDERING) { this.sr.updateMeshesForEffectLayer(gl); } @@ -740,6 +737,9 @@ export class RoomEngine extends EventEmitter { this.zGridPreviewPlane.isVisible = false; this.selectionOutlineLayer = new BABYLON.SelectionOutlineLayer('outliner', this.scene); + if (SNAPSHOT_RENDERING) { + this.sr.updateMeshesForEffectLayer(this.selectionOutlineLayer); + } if (_DEV_) { // snapshot renderingかつglow layerが有効だとなんかクラッシュする