Shadows

Every Taffer need to play Thief: The Dark Project

The process of learning if something is in shadow or not is not as easy as one would think.

Lightmap

Use a texture to store the light levels of a surface.

Shadow Map - 1978

Render a depth buffer from the light source viewpoint and use it to detect what the light can shine on.

Shadow Volume - 1977

Create volumes from the occluders silhouette edges and render them using the stencil buffers.

Reference

Real-time Shadows - 2020

Real-time Shadows

https://docs.google.com/presentation/d/1MwJcnSvkAzpT8BuoSqIkzlYLjdA_lBDrt8bW-vcwmDU/edit#slide=id.p

Point and Spot Shadows Perspective Shadows

https://catlikecoding.com/unity/tutorials/custom-srp/point-and-spot-shadows/

Sparse Shadow Trees - 2016

https://research.activision.com/publications/archives/sparse-shadow-trees

Raytraced Shadows in Call of Duty: Modern Warfare - 2020

https://research.activision.com/publications/2020-10/raytraced-shadows-in-call-of-duty--modern-warfare

Cascaded Shadow Maps with Soft Shadows

http://alextardif.com/shadowmapping.html

Sample Distribution Shadow Maps

http://alextardif.com/code/SDSM.pptx