You've already forked godot
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user