Skip to content

Commit

Permalink
Render with transparent background
Browse files Browse the repository at this point in the history
  • Loading branch information
JanGross committed Sep 18, 2023
1 parent d5d2741 commit 81babdf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/Main.gd
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 81babdf

Please sign in to comment.