threejs-exposure-color-grading
Skill1.1k starsChanged 6 days agoMITView on GitHub
Build a measured exposure, tone-mapping, and color-grading path in Three.js. Use for deliberate AgX, ACES, and Neutral tone-mapper selection, RenderPipeline outputColorTransform ownership, scene-referred contrast, TSL gamut-limited class-aware saturation, encoded 64x36 luminance metering, asymmetric eye adaptation, 3D LUT grading, and subtle photographic lens and sensor traits.
3 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- swyxio/skillsedited, first seen Nov 29, 2026
- linegel/threejs-complete-set-of-skilltheir own version, first seen Jul 28, 2026
- jorgeasaurus/agent-skillsedited, first seen May 11, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- swyxio/skills★ 20315% same
- jorgeasaurus/agent-skills★ 1415% same
Wrote their own version · 1
- linegel/threejs-complete-set-of-skill★ 9same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository29 other files it gives its agents.
- .codex/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- threejs-atmosphere-aerial-perspectiveSkill
- threejs-bloomSkill
- threejs-camera-directionSkill
- threejs-image-pipelineSkill
- threejs-lighting-and-giSkill
- threejs-parallax-occlusion-mappingSkill
- threejs-precipitation-surfacesSkill
- threejs-procedural-animationSkill
- threejs-procedural-architectureSkill
- threejs-procedural-fieldsSkill
- threejs-procedural-geometrySkill
- threejs-procedural-materialsSkill
- threejs-procedural-planetsSkill
- threejs-procedural-vegetationSkill
- threejs-procedural-vfxSkill
- threejs-raymarched-space-effectsSkill
- threejs-reference-readingSkill
- threejs-screen-space-ambient-occlusionSkill
- threejs-shadow-systemsSkill
- threejs-skill-routerSkill
- threejs-spectral-oceanSkill
- threejs-temporal-stabilitySkill
- threejs-temporal-surfacesSkill
- threejs-terrain-and-landscapesSkill
- threejs-visual-validationSkill
- threejs-volumetric-cloudsSkill
- threejs-water-opticsSkill
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
0
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Treat exposure, tone mapping, grading, and lens traits as distinct stages applied on top of correct lighting.
- Very specific: line 21
Read references/tonemapping-grading-and-lens.md for choosing between AgXToneMapping, ACESFilmicToneMapping, and NeutralToneMapping, …
- Very specific: line 23
Read references/scene-referred-color-pipeline.md for the 64×36 encoded luminance meter, asynchronous readback, asymmetric eye adaptation, …
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Exposure and Color Grading
Treat exposure, tone mapping, grading, and lens traits as distinct stages applied on top of correct lighting. A grade never substitutes for key-to-fill lighting ($threejs-lighting-and-gi) or atmospheric clarity.
Order
HDR scene (after AO / atmosphere / HDR bloom)
→ anchored or adapted exposure + scene-referred contrast
→ single tone map (AgX / ACES / Neutral)
→ display-referred grade (gamut-limited class-aware saturation / 3D LUT)
→ subtle photographic lens & sensor traits
→ final output conversionRead references/tonemapping-grading-and-lens.md for choosing between AgXToneMapping, ACESFilmicToneMapping, and NeutralToneMapping, RenderPipeline.outputColorTransform ownership, avoiding post-tonemap S-curve flatness, TSL saturateInGamut, and restrained lens/sensor traits.
Read references/scene-referred-color-pipeline.md for the 64×36 encoded luminance meter, asynchronous readback, asymmetric eye adaptation, display-domain 32³ LUT construction, and metering diagnostics.
Failure conditions
- tone mapping occurs twice (e.g.,
outputColorTransform = truealongside an explicitrenderOutputor material tone map); - a heavy post-tonemap S-curve flattens shadow and highlight surface texture (measured by
8×8local contrast dropping after grade); - exposure or grading is abused to repair physically inconsistent light ratios or stacked fog/glare veils;
- naive saturation clips channels, shifts hues, or tints sunlit whites and neutral stone;
- brightness-keyed teal/orange tinting overrides light-driven color;
- adaptation speed is symmetric toward light and dark, or meter weighting is uninspected;
- a display-domain LUT or
[0, 1]gamut clamp is run on unbounded scene-referred HDR; - unrequested lens flares, sunbursts, dirty-lens overlays, or heavy film grain hide render noise.
Routing boundary
This skill owns exposure anchoring/adaptation, tone-map ownership, scene- and display-referred grading, LUTs, and subtle lens/sensor traits. Use $threejs-lighting-and-gi for key-to-fill contrast and warm/cool light balance; $threejs-bloom for HDR veiling glare; $threejs-procedural-vfx for standalone filmic HDR lens-flare compositors; $threejs-temporal-stability for AA and motion noise; and $threejs-image-pipeline when coordinating shared buffers across multiple image-space systems.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

