$npx -y skills add scottstts/Threejs-Awesome-Graphics-Agent-Skills --skill threejs-exposure-color-gradingBuild a measured exposure and grading path in Three.js. Use for a 64x36 encoded luminance meter, asynchronous readback, weighted log-average exposure, asymmetric adaptation, single tone-map ownership, and a generated 32-cube post-tone-map LUT.
| 1 | # Exposure and Color Grading |
| 2 | |
| 3 | Treat exposure, tone mapping, grading, and output conversion as distinct stages. Tune them from measured HDR signal, not by stacking compensating color operations. |
| 4 | |
| 5 | ## Order |
| 6 | |
| 7 | ```text |
| 8 | HDR scene |
| 9 | → luminance meter |
| 10 | → adapted exposure |
| 11 | → tone map |
| 12 | → creative grade / 3D LUT |
| 13 | → final output conversion |
| 14 | ``` |
| 15 | |
| 16 | Read [references/scene-referred-color-pipeline.md](references/scene-referred-color-pipeline.md) |
| 17 | for the exact 64x36 meter, encoded readback, adaptation constants, 32-cube LUT, |
| 18 | and signal-ownership ambiguities. |
| 19 | |
| 20 | ## Failure conditions |
| 21 | |
| 22 | - tone mapping occurs in both materials and post; |
| 23 | - exposure is used to repair physically inconsistent light ratios; |
| 24 | - meter weighting and scene framing are not inspected; |
| 25 | - adaptation speed is the same toward light and dark; |
| 26 | - LUT input/output spaces are undocumented; |
| 27 | - sRGB encoding happens twice; |
| 28 | - a display-domain LUT is moved before tone mapping without being rebuilt. |
| 29 | |
| 30 | ## Routing boundary |
| 31 | |
| 32 | Use `$threejs-bloom` for HDR glow contribution and |
| 33 | `$threejs-image-pipeline` when this color path must share ownership with AO, |
| 34 | atmosphere, or effect-local render targets. |