THREE.JS / FOUNDATIONS 47

The shadow between pixels.

Shadow maps build the broad foundation. A depth raymarch adds the close, intricate contact detail that a light-space map alone cannot resolve.

Initializing SSS—
Preparing the depth and shadow pipeline…

The native route samples depth-raymarch and temporal work; the WebGL2 route samples the direct shadow-map baseline.

SSS is a close-detail layer: long rays get expensive, off-screen occluders disappear, and temporal filtering can trade noise for ghosting.

LAB 47 / SCREEN-SPACE SHADOWS