/visual-effects:threejs-bloomfrom visual-effects
Adds bloom (the glow around bright light) to a Three.js WebGPU/TSL scene using scene-linear HDR input. Covers optical full-scene glare, selective or hybrid emissive contributors, transparent contribution blending, and viewport, exposure and performance gates for BloomNode. Use when a user asks for bloom, glow, halos or a glare pass in a Three.js or WebGPU scene, or when bloom looks wrong on emissive or transparent objects.
Ships in visual-effects. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
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.
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.
| 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.
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:
vec4(scene.rgb + bloom.rgb, 1);vec4(scene.rgb + bloom.rgb, scene.a) and explicitly accept that glare
outside source coverage is discarded;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.
Name the threshold domain:
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)) >= 16
This 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.
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 conversion
Selective 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.
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.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub frzxw/supercharger --plugin visual-effects7 skills in this plugin
/blender-simulation-workflowCreate, diagnose, bake, and validate deterministic Blender physics simulations including fluid, smoke, fire, rigid bodies, cloth, soft bodies, particles, and hair. Use when a request involves physical dynamics, collision, cache baking, fluid or volume output, simulation handoff, or rendering a simulation./fire-smoke-vfxBuild fire and smoke effects as one visual language in Three.js. Use for fire skills, fireballs, fire waves or breath, fire tornadoes, burning ground, wildfire fronts, smoke columns, embers, "realistic fire", "inferno"./glsl-shadersComprehensive GLSL shader techniques for stunning real-time visual effects (ShaderToy-compatible, WebGL2): ray marching, SDF modeling, fluid simulation, particle systems, procedural generation, lighting, post-processing, and more. Use when a user asks for a GLSL or ShaderToy shader, a raymarched SDF scene, fluid or ink, procedural noise, a bloom or tone-map pass, or a fix for a WebGL2 shader compile error./threejs-particles-trails-and-effectsBuilds GPU particle systems, ribbon or history trails and other effects in Three.js WebGPU/TSL, with a representation-first approach that chooses the motion and pool layout before the visuals. Covers analytic or recurrent particle motion, stable-slot or scan-compacted GPU pools, flow-conforming shells and wakes, dissolving debris, and effect-specific HDR and depth integration. Use when a user asks for sparks, debris, trails, a wake or a particle effect in a Three.js or WebGPU scene./threejs-physicsIntegrates Rapier or another physics engine with Three.js, including colliders, fixed timesteps and render synchronization. Use when a user asks to add physics, gravity, collisions, rigid bodies or a Rapier world to a Three.js scene, or when a fast body passes through a collider or resting bodies are unstable./visual-effects-guideStart here for visual effects work. Routes a request to the right visual-effects skill (fire and smoke, GLSL shaders, Three.js bloom, particles and trails, Three.js physics, Blender simulation bakes) and sequences several of them into a workflow with the input and output of each step. Use when a user asks how to make a fireball, flames, smoke, sparks, debris, a glow or bloom, a physics scene, a shader, or a Blender fluid or cloth simulation, or asks which VFX approach fits.