THREE.JS / FOUNDATIONS — VSM SHADOWS
Soft shadows, explicitly.
Keep the VSM shadow lane visible: a moving torus knot, a directional light, a spotlight, filter controls, and a renderer-level variance shadow-map contract.
Initializing VSM shadowsWebGL2
Preparing the shadow casters and receivers.
Study issue
- BACKEND
- —
- MODE
- —
- SHADOW TYPE
- —
- DIR RADIUS / SAMPLES
- —
- SPOT RADIUS / SAMPLES
- —
- SAMPLE
- —
- BUILDS
- —
VSM controlsDIR / SPOT / RECEIVERS
Variance shadow-map contract
VSM is a renderer shadow-map type. Its native filter controls live on each light's shadow object as radius and blurSamples; both light lanes share the explicit renderer gate.
Derived from the official WebGL VSM ShadowMap example, pinned source, LightShadow, and WebGLRenderer shadowMap contracts. This bounded study does not claim whole-example fidelity.