three.js
- ShadowMapViewer example by
arya-s
Click the scene to probe a point
P
×
Light space
−1
0
+1
NDC
0 … 1
x → u
→
y → v
→
z → depth
→
0
0.5
1
× 0.5 + 0.5
Shadow test
lightDepth
P’s own depth from the light
stored
bias
added to stored