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