From 3db4367374013c026b2a0c68ffbb0cc43b3ca8de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cle=CC=81ment=20Foucault?= Date: Mon, 10 Jun 2024 22:02:07 +0200 Subject: [PATCH] EEVEE-Next: Disable shadows in legacy files Having the sun extracted is mandatory to keep the same look and avoid too much light leaking compared to EEVEE-Legacy. But adding shadows might create performance overhead and change the result in a very different way. So we disable shadows in older file. --- source/blender/blenloader/intern/versioning_400.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/blender/blenloader/intern/versioning_400.cc b/source/blender/blenloader/intern/versioning_400.cc index 84531f47751..26eed75d472 100644 --- a/source/blender/blenloader/intern/versioning_400.cc +++ b/source/blender/blenloader/intern/versioning_400.cc @@ -3920,7 +3920,10 @@ void blo_do_versions_400(FileData *fd, Library * /*lib*/, Main *bmain) world->sun_threshold = default_world->sun_threshold; world->sun_angle = default_world->sun_angle; world->sun_shadow_maximum_resolution = default_world->sun_shadow_maximum_resolution; - world->flag |= WO_USE_SUN_SHADOW; + /* Having the sun extracted is mandatory to keep the same look and avoid too much light + * leaking compared to EEVEE-Legacy. But adding shadows might create performance overhead and + * change the result in a very different way. So we disable shadows in older file. */ + world->flag &= ~WO_USE_SUN_SHADOW; } }