THREE.JS / LIGHTING COMPATIBILITY

Name the light you actually have.

The current docs expose SunLight and SunLightNode, but the pinned three@0.185.1 package does not. This route probes the installed WebGPU namespace, then renders a clearly labeled WebGL2 DirectionalLight reference shaped around the official SunLight avenue: source camera, 10°/135° sun defaults, 1000 shadow far, 2048 map, 120 posts, and 60 towers.

ReadyWEBGL2 / REFERENCE
Probing the installed package.
direction
—
SunLight exports
—
shadow state
—
target
—
far / map
—
sample avg / p95
—

This is a source-shaped compatibility and ownership contract, not native SunLight execution. The avenue, 9000-unit sky backdrop, camera, light controls, instance counts, and shadow defaults follow the pinned official example; the sky/environment PMREM loop, cascade tint, native SunLight/SunLightNode graph, exact page/pixel presentation, device parity, performance calibration, and whole-example fidelity remain separate.

Sources: SunLight docs · SunLightNode docs · official SunLight example