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:
parent
880a0177d1
commit
bab8497fa2
3 changed files with 12 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue