diff options
Diffstat (limited to 'source/blender/blenloader/intern/versioning_280.c')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index dd67a4d72cb..b14ffa9d0b0 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -4461,5 +4461,14 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain) } } } + + /* EEVEE: Cascade shadow bias fix */ + LISTBASE_FOREACH (Light *, light, &bmain->lights) { + if (light->type == LA_SUN) { + /* Should be 0.0004 but for practical reason we make it bigger. + * Correct factor is scene dependent. */ + light->bias *= 0.002f; + } + } } } |