1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-03 19:11:41 +00:00

Add a project setting to make the root viewport transparent

This allows recording videos with a transparent background without
having to create a script.
This commit is contained in:
Hugo Locurcio
2022-10-09 00:05:56 +02:00
parent 880a0177d1
commit bab8497fa2
3 changed files with 12 additions and 3 deletions

View File

@@ -2400,6 +2400,9 @@ void Node3DEditorViewport::_project_settings_changed() {
const bool use_taa = GLOBAL_GET("rendering/anti_aliasing/quality/use_taa");
viewport->set_use_taa(use_taa);
const bool transparent_background = GLOBAL_GET("rendering/transparent_background");
viewport->set_transparent_background(transparent_background);
const bool use_debanding = GLOBAL_GET("rendering/anti_aliasing/quality/use_debanding");
viewport->set_use_debanding(use_debanding);