agentleFS
scottsttsscottstts/Threejs-Awesome-Graphics-Agent-Skills/skills/threejs-bloom/SKILL.md

threejs-bloom

Skill1.1k starsChanged 4 days agoMITView on GitHub

Implement production bloom in advanced Three.js scenes. Use for HDR signal ordering, physically grounded veiling glare, bloom-node controls, dual selective bloom with guaranteed material restoration, scene-relative emissive hierarchy, off-screen pop prevention, sprite depth ownership, and effect-isolation diagnostics.

2 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ensure transparent glow sprites own valid depth (or composite after DOF) when depth-based passes run alongside bloom.

    line 17
  2. Distinctive:

    Read references/hdr-bloom-system.md for the HDR ordering, veiling-glare calibration, dual selective-bloom transaction, compact emissive …

    line 20
  3. Distinctive:

    all bright materials share one arbitrary emission multiplier instead of a physical hierarchy.

    line 30
  4. Very specific:

    Use $threejs-exposure-color-grading for metering, adaptation, tone mapping, and LUTs.

    line 40

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Bloom

Bloom is a camera/display veiling glare response to bright HDR signal — a wide, low-energy spread above a high threshold, never a grey film over ordinary surfaces. Establish scene exposure and emissive luminance hierarchy before tuning blur.

Workflow

  1. Inspect pre-tone-map luminance and separate atmospheric sun aureole from lens bloom so glow is not double-counted.
  2. Choose which HDR values should bloom (sun > practical fixtures > luminous signs > ambient surfaces).
  3. Choose a single-node HDR bloom pass or a dual selective-render ownership model.
  4. Calibrate threshold above the brightest non-glowing surface, plus radius, smooth width, and low-energy strength in HDR.
  5. Restore all substituted materials transactionally (try/finally) for selective passes.
  6. Ensure transparent glow sprites own valid depth (or composite after DOF) when depth-based passes run alongside bloom.
  7. Composite before exposure/tone mapping, then validate base, contribution, final, and turning-past-edge motion views.

Read references/hdr-bloom-system.md for the HDR ordering, veiling-glare calibration, dual selective-bloom transaction, compact emissive hierarchy, off-screen pop safeguards, and ownership limits.

Apply the material substitution/restoration ownership pattern in the reference before adding selective bloom to a composed scene.

Failure conditions

  • bloom creates the only visible form of an effect or veils the whole frame in grey glare;
  • all bright materials share one arbitrary emission multiplier instead of a physical hierarchy;
  • threshold is tuned after tone mapping or set low enough to bloom sunlit white stone/clouds;
  • sky aureole and wide lens bloom stack together into an oversized washed-out sun halo;
  • bloom pops or flickers abruptly as a bright emitter crosses the viewport edge;
  • emissive sprites bloom or blur inconsistently depending on background depth behind them;
  • selective bloom mutates scene materials without try/finally restoration guarantees;
  • bloom radius changes wildly with resolution or highlights turn grey from early clamping.

Routing boundary

Use $threejs-exposure-color-grading for metering, adaptation, tone mapping, and LUTs; $threejs-atmosphere-aerial-perspective for physical sky sun aureole; $threejs-temporal-stability for edge-pop and guard-band stability; and $threejs-image-pipeline only when bloom must be composed with several shared image-space systems. A per-pixel ray integrator that owns its own reduced-resolution target and accumulation history keeps its bloom internal; route that to $threejs-raymarched-space-effects.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.