← Lab index
THREE.JS / WEBGL INTERACTIVE CUBES ORTHO

Orbit the selection ray.

A source-backed orthographic interaction contract: the camera orbits a deterministic cube field, pointer coordinates feed Raycaster.setFromCamera(), and the nearest selected cube owns a reversible emissive highlight.

This route claims the installed OrthographicCamera + Raycaster selection contract only. The official 2,000 random cubes, Stats presentation, exact pointer/camera composition, device/compiler/backend coverage, and whole-example fidelity remain separate.

Sources: official interactive cubes example · OrthographicCamera · Raycaster