threejs-bloom
Skill8 starsChanged 4 months agoISCView on GitHub
Bloom scene-linear HDR in Three.js WebGPU/TSL. Use when choosing optical full-scene glare, selective or hybrid contributors, transparent contribution blending, or viewport, exposure, and performance gates for BloomNode.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- scottstts/Threejs-Awesome-Graphics-Agent-Skillstheir own version, first seen Aug 27, 2026
- jorgeasaurus/agent-skillstheir own version, first seen May 11, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- scottstts/Threejs-Awesome-Graphics-Agent-Skills★ 872same name
- jorgeasaurus/agent-skills★ 13same 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 repository30 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- product-from-scratchSkill
- threejs-ambient-contact-shadingSkill
- threejs-black-holes-and-space-effectsSkill
- threejs-camera-controls-and-rigsSkill
- threejs-choose-skillsSkill
- threejs-compatibility-fallbacksSkill
- threejs-debuggingSkill
- threejs-dynamic-surface-effectsSkill
- threejs-exposure-color-gradingSkill
- threejs-image-pipelineSkill
- threejs-object-sculptorSkill
- threejs-particles-trails-and-effectsSkill
- threejs-procedural-buildings-and-citiesSkill
- threejs-procedural-creaturesSkill
- threejs-procedural-fieldsSkill
- threejs-procedural-geometrySkill
- threejs-procedural-materialsSkill
- threejs-procedural-motion-systemsSkill
- threejs-procedural-planetsSkill
- threejs-procedural-vegetationSkill
- threejs-rain-snow-and-wet-surfacesSkill
- threejs-scalable-real-time-shadowsSkill
- threejs-sky-atmosphere-and-hazeSkill
- threejs-spectral-oceanSkill
- threejs-visual-validationSkill
- threejs-volumetric-cloudsSkill
- threejs-water-opticsSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 6 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Treat bloom as the broad tail of an imaging point-spread function.
- Very specific: line 39
Use one HDR scene traversal for both full-scene and selective bloom.
- Very specific: line 47
Keep the canonical selective path on the regular emissiveNode.
- Distinctive: line 71
When implementing the full-scene, selective, or hybrid graph, or transparent selective contribution, read r185 graphs and transparent …
- Very specific: line 88
Treat radius as cross-mip spread, not a physical radius.
- Distinctive: line 99
When tuning spread, scale, or a nonstandard optical footprint, read BloomNode PSF and work.
- Distinctive: line 104
Use this default order:
- Distinctive: line 126
When coupling threshold to exposure or selecting final output ownership, read Exposure, output, and lifecycle.
- Very specific: line 129
Use $threejs-exposure-color-grading for exposure-coupled thresholds, tone mapping, grading, and output conversion.
- Distinctive: line 154
When calculating exact internal storage/work or diagnosing a failed gate, read Budget and acceptance.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
Bloom
Treat bloom as the broad tail of an imaging point-spread function. Its closest built-in optical input is all scene-linear HDR radiance. Selective contribution is an art-direction branch, not an automatic quality upgrade.
1. Validate the source scene
Capture scene-linear HDR, false-color pre-tone luminance, and the final image with bloom disabled. Repair the source when highlights were clamped or when silhouette, material, or lighting identity disappears without bloom.
This step is complete when the bloom-off scene remains readable and the input is unclamped scene-linear HDR in a declared working basis.
2. Choose the signal
| Contract | Signal | Admission test |
| optical glare from emission, direct response, reflection, transmission, sky, and sun | full scene HDR | a luminance threshold and knee meet contributor error limits |
| named surfaces glow differently from equally bright radiance | selective emissive contribution | full-scene threshold cannot meet those limits and the MRT delta fits |
| optical highlights plus deliberate boost | scene HDR plus selective boost | both components are required and the shared attachment is charged once |
| source scene fails without glare or all bloom tiers miss a gate | defer bloom | source is repaired or budget/viewport changes |
Stabilize exposure before comparing branches. Inspect both false-positive and false-negative bloom energy, including bright mirrors and transmissive surfaces.
This step is complete when one source branch is named, its omissions are accepted, and its contribution error and target-device cost meet declared limits.
3. Build one scene pass
Use one HDR scene traversal for both full-scene and selective bloom. Full-scene
bloom reads the scene output. Selective bloom adds an emissive MRT output to
the same pass and gives it BlendMode(MaterialBlending). Supply explicit
contribution RGBA with the material's alpha and matching RGB convention;
blend factors alone do not repair a bare emissive vec3 or double premultiplication.
The reference includes the per-material expression and corrected emitter.
In r185, material-level mrtNode merging can lose the operative blend-mode map.
Keep the canonical selective path on the regular emissiveNode; use a separate
measured contribution pass or source-verified custom merge only when visible
emission and bloom contribution must diverge.
Choose the final-output alpha branch before adding bloom RGB:
- opaque or already composited output: use
vec4(scene.rgb + bloom.rgb, 1); - transparent coverage-clipped output: use
vec4(scene.rgb + bloom.rgb, scene.a)and explicitly accept that glare outside source coverage is discarded; - transparent output that must preserve halos outside source coverage:
composite over the known background before
renderOutput(), or publish separate glare RGB with an explicit coverage/compositing contract.
Unchanged source alpha cannot claim preserved transparent halos. Verify transparent contribution overlap in both insertion orders and under the chosen premultiplied/straight-alpha policy.
This step is complete when scene traversal count is known, every contribution uses the intended depth/sort/blend/alpha state, overlapping contributors accumulate correctly, and the final-output alpha branch states whether halo outside source coverage is discarded, composited, or represented separately.
When implementing the full-scene, selective, or hybrid graph, or transparent selective contribution, read r185 graphs and transparent blending.
4. Set threshold and footprint
Name the threshold domain:
- scene-referred: fixed in the bloom input's radiance basis;
- exposed-linear: convert from the current adapted exposure;
- display-referred: use only with a stable inverse of the declared tone/output path.
Convert threshold and soft-knee together: divide both by positive exposure for
an exposed-linear rule, but invert both endpoints and subtract for a validated
nonlinear scalar rule. Reject an undefined display-luminance inverse. Require a
positive stock knee, or implement a separately validated hard-threshold branch.
Treat radius as cross-mip spread, not a physical radius. Validate
minimum and maximum viewport/DPR. Stock r185's five-level chain requires:
floor(bloomScale * min(drawingBufferWidth, drawingBufferHeight)) >= 16This step is complete when threshold units and update owner are explicit, the halo passes endpoint views, and the deepest mip remains valid at every shipping extent.
When tuning spread, scale, or a nonstandard optical footprint, read BloomNode PSF and work.
5. Join the final-image graph
Use this default order:
stable scene-linear HDR
-> temporal resolve, when present
-> excluded transparent/refractive layers
-> pre-bloom meter tap
-> bloom extraction, blur, and RGB add
-> adapted exposure
-> tone map, grade, and one output conversionSelective input that bypasses temporal resolve still needs a stability decision
for subpixel or discontinuous emission. Keep UI and diagnostics outside HDR
bloom unless the visual contract includes them. After changing the active
output graph, set RenderPipeline.needsUpdate = true.
This step is complete when bloom has one owner, every admitted meter, exposure, tone map, alpha operation, and output conversion has one owner, the selected output-alpha branch is preserved through presentation, and the bloom-off graph is genuinely reachable.
When coupling threshold to exposure or selecting final output ownership, read Exposure, output, and lifecycle.
Use $threejs-exposure-color-grading for exposure-coupled thresholds, tone
mapping, grading, and output conversion. Use $threejs-image-pipeline when the
scene pass, MRT signals, transparent ordering, or final graph is shared with
other effects.
6. Measure, degrade, and dispose
Measure warmed paired graphs: scene alone, full-scene bloom, scene with contribution MRT, and selective/hybrid bloom where applicable. Report physical pixels, scale, attachment formats, target inventory, transparent screen coverage, sustained timing, and marginal time. Reduce bloom scale first for a pixel-bound miss, then remeasure; full-scene input can remove a costly full-resolution contribution attachment. Disable bloom when the minimum-mip, memory, thermal, or marginal-time gate still fails.
Replace the output node for the disabled path, mark the pipeline dirty, and
dispose BloomNode and any exclusive contribution resources after final GPU
use. Uniform updates do not rebuild the graph; structural rebuilds use a fresh
node or an idempotent pinned correction because stock setup appends materials.
Recreate evidence after renderer/device loss or format generation change.
This step is complete when every shipping tier passes fixed captures and sustained target-device budgets, bloom-off timing loses the bloom work, and repeated enable/disable, resize, and disposal cycles stabilize resources.
When calculating exact internal storage/work or diagnosing a failed gate, read Budget and acceptance.
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.

