1
0
mirror of https://github.com/godotengine/godot.git synced 2025-12-03 16:55:53 +00:00

Merge pull request #70228 from Calinou/add-transparent-viewport-project-setting-3.x

Add a project setting to make the root viewport transparent (3.x)
This commit is contained in:
Rémi Verschelde
2022-12-22 08:55:21 +01:00
4 changed files with 14 additions and 3 deletions

View File

@@ -2256,6 +2256,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);