1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-13 16:25:44 +02:00

Update engine.ts

This commit is contained in:
syuilo
2026-04-16 15:27:23 +09:00
parent e634fb1456
commit 4f9aded205

View File

@@ -645,9 +645,6 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
});
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<RoomEngineEvents> {
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が有効だとなんかクラッシュする