Due to the research of the new algorithm based on embree, this specific revision can be put on hold.
This is a WIP patch for shadow projection. The way it works is by:
- Running a separate line art from the light's perspective and get the light contour,
- Then project visible segments onto surfaces,
- Load projected segments into the "real" line art stage and compute visibility together with the rest of the scene.
Problems for now:
- Rarely there will be a shadow segment that will ended up in a "occluded" state although it should be perfectly visible.
No distinguish between projected onto which side of the triangle, which means the shadow will "show through when viewed from behind the wall" if you only have 1 layer of face as "the wall".Considered resolved, although not perfect.
Try out the function using lineart-shadow branch. This patch is not really meant for master any time soon but it's here so you guys can give feedbacks.
This patch applies on top of branch temp-lineart-contained.

