Blender Git Commit Log

Git Commits -> Revision 31f49c8

October 18, 2019, 12:43 (GMT)
Fix T70249 EEVEE: Light bleeding on SSS translucency

This was caused by 2 things: Shadow map bias and aliasing.

It made the expected depth of the shadowmap further than the surface
itself in some cases. In normal time this leads to light leaking on normal
shadow mapping but here we need to always have the shadowmap depth above
the shading point.

To fix this, we use a 5 tap inflate filter using the minimum depth of all
5 samples. Using these 5 taps, we can deduce entrance surface derivatives
and there orientation towards the light ray. We use these derivatives to
bias the depth to avoid wrong depth at depth discontinuity in the shadowmap.

This bias can lead to some shadowleaks that are less distracting than the
lightleaks it fixes.

We also add a small bias to counteract the shadowmap depth precision.

Commit Details:

Full Hash: 31f49c8c85f8392e6ffc309ea601723ec81d4016
Parent Commit: d9c0df7
Committed By: YimingWu
Lines Changed: +73, -12

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2021