1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-06 17:25:19 +00:00

Add a project setting to make the root viewport transparent

This allows creating a project with a transparent window without having
to write any script.
This commit is contained in:
Hugo Locurcio
2022-12-17 23:30:16 +01:00
parent 3428bcd854
commit 65465f309c
4 changed files with 14 additions and 3 deletions

View File

@@ -2250,6 +2250,9 @@ SceneTree::SceneTree() {
const bool use_fxaa = GLOBAL_DEF("rendering/quality/filters/use_fxaa", false);
root->set_use_fxaa(use_fxaa);
const bool transparent_background = GLOBAL_DEF("rendering/viewport/transparent_background", false);
root->set_transparent_background(transparent_background);
const bool use_debanding = GLOBAL_DEF("rendering/quality/filters/use_debanding", false);
root->set_use_debanding(use_debanding);