Blender Git Loki

Git Commits -> Revision 9e19ec0

September 2, 2019, 14:41 (GMT)
Eevee: Shadows: Add Receiver Plane Depth Bias

This bias replace the previous bias method. The bias is now scalled to
have the correct depth of the triangle at the sample location. This is done
by computing the actual depth that would be recorded in the shadowmap
at the texels locations, if the triangle was extrapolated.

This leads to less shadow acne and it ensure the bias is always the minimum
amount that ensure correct shadowing.

However this technique is not failure free and if the receiver is nearly
parallel to the light, the bias is nearly infinite and light leaking occurs.

For this reason I decided to cap the bias by the bias parameter to tweak
between shadow acne and light leaking.

Commit Details:

Full Hash: 9e19ec0d181444793d26b8d5aa65b3fcc0ef3f1d
Parent Commit: e951f5f
Lines Changed: +149, -51

4 Modified Paths:

/source/blender/draw/engines/eevee/eevee_lights.c (+2, -2) (Diff)
/source/blender/draw/engines/eevee/eevee_materials.c (+0, -9) (Diff)
/source/blender/draw/engines/eevee/eevee_subsurface.c (+0, -9) (Diff)
/source/blender/draw/engines/eevee/shaders/lights_lib.glsl (+147, -31) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021