# post-processing-bloom

Add a post-processing chain (render pass, bloom, output pass with tone mapping) to a three.js scene, with a quality switch for phones

- **Space:** threejs-public (https://github.com/Tech-Realm/space-threejs-public/tree/main/post-processing-bloom)
- **Level:** L1 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3, playwright-python, chromium
- **Routes:** static-local; checks: 2
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use threejs-public/post-processing-bloom` or MCP `get_pack threejs-public/post-processing-bloom`
- **Files:** CHANGELOG.md, code/boot.js, code/index.html, code/main.js, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/results.json, pack.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal
Bloom/glow via EffectComposer that stays correct in colour (OutputPass last) and can be turned down or off on weak devices.

## Steps
1. Copy `code/`; `?quality=low` halves the bloom resolution, `?fx=off` skips the composer.
2. Add passes between RenderPass and OutputPass only.
3. Resize the composer together with the renderer (template does).
4. Check: `python3 ../tools/webgl_check.py code --js "window.__fx.passes >= 3"`.

## Edge cases
- Composer + MSAA: use a multisampled render target or FXAA/SMAA pass.
- Transparent backgrounds don't survive most effects.

## Don'ts
- Don't tone-map twice (renderer + OutputPass).
- Don't run full-res bloom on phones.



---

Canonical URL: https://logicpacks.io/packs/threejs-public/post-processing-bloom

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
