diff --git a/packages/engine/src/render/Lighting.ts b/packages/engine/src/render/Lighting.ts index 73f50bf..4a43f5f 100644 --- a/packages/engine/src/render/Lighting.ts +++ b/packages/engine/src/render/Lighting.ts @@ -279,6 +279,9 @@ this.bakeFill.width = options.width; this.bakeFill.height = options.height; this.bake.addChild(this.bakeFill); + // Display-спрайт показывает саму карту силы тьмы (без рендерера RT нет — + // остаётся Texture.WHITE: multiply белого сцену не трогает). + if (this.rt) this.darkSprite.texture = this.rt; this.glow = this.renderer ? makeGlowTexture(this.renderer) : Texture.WHITE; this.hole = this.renderer ? makeHoleTexture(this.renderer) : Texture.WHITE;