Render with transparent background

This commit is contained in:
2023-09-18 11:01:14 +02:00
parent d5d27418d1
commit 81babdf16e

View File

@@ -14,6 +14,10 @@ signal finished_rendering
# Called when the node enters the scene tree for the first time. # Called when the node enters the scene tree for the first time.
func _ready(): 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") config.load("res://config.cfg")
websocket_url = config.get_value("core", "websocket_url") websocket_url = config.get_value("core", "websocket_url")
public_path = config.get_value("core", "public_path") public_path = config.get_value("core", "public_path")