Blender Git Commit Log

Git Commits -> Revision d3def53

Revision d3def53 by Clément Foucault (master)
May 20, 2018, 17:17 (GMT)
Workbench: Shadow: Add support for completly manifold geom.

If a mesh is known to be manifold, then it's not necessary to increment the
stencil buffer 2 times anymore. But we still need to account properly for
degenerate triangles.

In this case, only generate a quad if the tri is facing the lamp. If there
is a degenerate loop, the other edge will either cancel the increment (if
it is also facing the light) or not produce a quad (if not facing).

This will always give the correct count.

Commit Details:

Full Hash: d3def53be5a1956dbf7f3048bc6b75b760220736
Parent Commit: 4bbb1d4
Lines Changed: +8, -0

1 Modified Path:

/source/blender/draw/engines/workbench/shaders/workbench_shadow_geom.glsl (+8, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021