From ccd094577ffc47ed4a6a16dbb318cc0bcb0f396a Mon Sep 17 00:00:00 2001 From: Yaroslav Nazarenko <64281856+Jurfix@users.noreply.github.com> Date: Mon, 29 Jan 2024 00:54:32 +0200 Subject: [PATCH] Update runtimegame-pixi-renderer.ts This is necessary to make it possible to change the transparency of the GD background. const { background } = runtimeScene.getGame().getRenderer().getPIXIRenderer(); background.clearBeforeRender = false; background.alpha = 0; --- GDJS/Runtime/pixi-renderers/runtimegame-pixi-renderer.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/GDJS/Runtime/pixi-renderers/runtimegame-pixi-renderer.ts b/GDJS/Runtime/pixi-renderers/runtimegame-pixi-renderer.ts index 17adcc5f285f..755c0ed39059 100644 --- a/GDJS/Runtime/pixi-renderers/runtimegame-pixi-renderer.ts +++ b/GDJS/Runtime/pixi-renderers/runtimegame-pixi-renderer.ts @@ -104,6 +104,7 @@ namespace gdjs { height: this._game.getGameResolutionHeight(), preserveDrawingBuffer: true, antialias: false, + backgroundAlpha: 0, }) as PIXI.Renderer; gameCanvas = this._pixiRenderer.view as HTMLCanvasElement;