From 81babdf16ef1ba6e5d5f5142e55bd2aa63a27bb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Gro=C3=9F?= Date: Mon, 18 Sep 2023 11:01:14 +0200 Subject: [PATCH] Render with transparent background --- scripts/Main.gd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/Main.gd b/scripts/Main.gd index bb4f67b..8e99287 100644 --- a/scripts/Main.gd +++ b/scripts/Main.gd @@ -14,6 +14,10 @@ signal finished_rendering # Called when the node enters the scene tree for the first time. func _ready(): + #Setup transparency + get_tree().get_root().set_transparent_background(true) + DisplayServer.window_set_flag(DisplayServer.WINDOW_FLAG_TRANSPARENT, true, 0) + config.load("res://config.cfg") websocket_url = config.get_value("core", "websocket_url") public_path = config.get_value("core", "public_path")