Neon Sign Scene
- group .........
- 3D and WebGL scenes
- source ........
- https://ui.aryank.space/components/neon-sign-scene
- markdown ......
- /lab/neon-sign-scene.md
- human .........
- /lab/neon-sign-scene
── WHAT_IT_IS ────────────────────────────────────────────────────────────────────────────────
A lightbox sign with the BLANK wordmark hangs in a dark room corner. Two seconds in it flickers on, off and on again, and the room brightens with it. Lights sliding past the room sweep across the walls while the camera orbits slowly until the cursor takes over.
── BEHAVIOUR ────────────────────────────────────────────────────────────────────────────────
* Bloom follows postprocessing 6.36
The source shipped postprocessing 6.36, whose luminance pass weights each colour by its own luminance. 6.37 and later drop that term, so the component carries the 6.36 shader into the bloom's luminance material.
* Each material owns its environment map
Since three r163, a material lit by scene.environment reads scene.environmentIntensity (1) instead of its own envMapIntensity. The source relies on the room at 0.08 and the sign at 0, so the cube texture goes on each material's envMap instead.
* The wordmark is drawn at load
The sign texture is copied to a canvas and the BLANK mark is painted at the measured box of the original letters. The hosted model ships with its letters painted out, so no source typeface is left in the file.
* The first cursor move snaps
In gsap 3.11, context.revert() reverts tweens without suppressing events, so the orbit's last update sets the camera back to the orbit start pose and overwrites the first cursor tween. The port keeps it because it is source behaviour.