mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-24 19:44:05 +02:00
Update engine.ts
This commit is contained in:
@@ -645,9 +645,6 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
|||||||
});
|
});
|
||||||
gl.intensity = 0.5;
|
gl.intensity = 0.5;
|
||||||
|
|
||||||
// for improving performance
|
|
||||||
this.scene.setRenderingAutoClearDepthStencil(gl.renderingGroupId, false);
|
|
||||||
|
|
||||||
if (SNAPSHOT_RENDERING) {
|
if (SNAPSHOT_RENDERING) {
|
||||||
this.sr.updateMeshesForEffectLayer(gl);
|
this.sr.updateMeshesForEffectLayer(gl);
|
||||||
}
|
}
|
||||||
@@ -740,6 +737,9 @@ export class RoomEngine extends EventEmitter<RoomEngineEvents> {
|
|||||||
this.zGridPreviewPlane.isVisible = false;
|
this.zGridPreviewPlane.isVisible = false;
|
||||||
|
|
||||||
this.selectionOutlineLayer = new BABYLON.SelectionOutlineLayer('outliner', this.scene);
|
this.selectionOutlineLayer = new BABYLON.SelectionOutlineLayer('outliner', this.scene);
|
||||||
|
if (SNAPSHOT_RENDERING) {
|
||||||
|
this.sr.updateMeshesForEffectLayer(this.selectionOutlineLayer);
|
||||||
|
}
|
||||||
|
|
||||||
if (_DEV_) {
|
if (_DEV_) {
|
||||||
// snapshot renderingかつglow layerが有効だとなんかクラッシュする
|
// snapshot renderingかつglow layerが有効だとなんかクラッシュする
|
||||||
|
|||||||
Reference in New Issue
Block a user