threejs-postprocessing
About threejs-postprocessing
A skill for three.js developers working with the classic EffectComposer and postprocessing passes. It covers pass chaining, resizing, performance considerations, and pointers to official documentation.
Key features
- 01Configure RenderPass and effect-pass chains
- 02Handle composer resizing
- 03Find documentation for postprocessing passes
- 04Review buffer and pass-order considerations
- 05Distinguish addon and other rendering pipelines
Use cases
- 01Adding bloom or ambient occlusion to a scene
- 02Resizing the composer with the viewport
- 03Diagnosing smeared or low-resolution effects
- 04Finding shader modules for ShaderPass
Install
Copy the command and run it in a terminal.
npx skills add https:/ / github.com/ full-stack-skills/ threejs-skills --skill threejs-postprocessingAfter installing, type/threejs-postprocessingin Claude Code to confirm it loaded.
Bundled filesagents/openai.yamlexamples/workflow-composer-bloom.md
Details
From the project READMEWhen to use this skill
ALWAYS use this skill when the user mentions:
EffectComposer,RenderPass, stacking passes, resize of composer- Bloom, SSAO, SSR, DOF, outline, glitch, film grain, TAA—addon pass names
ShaderPasswith shader modules from Addons Shaders group
IMPORTANT: postprocessing vs renderers vs node-tsl
| Pipeline | Skill |
|---|---|
| Classic composer + passes | threejs-postprocessing |
| Renderer output color/tone only | threejs-renderers |
| Node/TSL post nodes | threejs-node-tsl |
Trigger phrases include:
- "EffectComposer", "RenderPass", "UnrealBloomPass", "SSAOPass", "后期"
- "泛光", "环境光遮蔽", "描边"
How to use this skill
- Chain:
RenderPass→ effect passes → output; ensure size matches renderer and DPR changes. - Resize: call
composer.setSizealongside renderer resize workflows. - Half-float: many passes expect appropriate render target types—cite docs for your version.
- Performance: each pass has cost—profile with
renderer.infosparingly. - Shader modules: link Addons Shaders list instead of inlining huge GLSL in SKILL.
- Output: final pass should align color management with renderer (threejs-renderers).
- Contrast: mention core
PostProcessingclass separately to avoid name collision confusion.
See examples/workflow-composer-bloom.md.
Doc map (official)
| Docs section | Representative links |
|---|---|
| Postprocessing | https://threejs.org/docs/EffectComposer.html |
| Postprocessing | https://threejs.org/docs/RenderPass.html |
| Postprocessing | https://threejs.org/docs/UnrealBloomPass.html |
| Shaders (addon modules) | https://threejs.org/docs/module-CopyShader.html |
Scope
- In scope: Addon postprocessing passes and composer wiring; pointers to shader modules.
- Out of scope: Custom full-screen pipeline design outside three docs; engine-level frame graphs.
Common pitfalls and best practices
- Forgetting composer resize produces smeared or low-res effects.
- Pass order matters—bloom often after main scene pass, outline may need masks.
- Some passes need depth—ensure depth buffer availability per pass docs.
Documentation and version
Addon passes live under Postprocessing and Shaders modules in three.js docs. Pass constructors and required buffers change across versions—link the specific pass page (e.g. UnrealBloomPass) rather than guessing uniform names.
Agent response checklist
When answering under this skill, prefer responses that:
- Link
EffectComposer,RenderPass, or the named pass (SSAOPass, …). - Contrast addon composer stack with core
PostProcessing+ threejs-node-tsl when users mix terms. - Require
setSizeon composer when threejs-renderers resizes. - Point to Shaders group for raw shader modules used by
ShaderPass. - Warn about VR frame-time when stacking heavy passes (threejs-webxr).
References
- https://threejs.org/docs/#Postprocessing
- https://threejs.org/docs/EffectComposer.html
- https://threejs.org/docs/RenderPass.html
Keywords
English: effectcomposer, renderpass, bloom, ssao, ssr, outline, postprocessing, three.js
中文: 后期、EffectComposer、泛光、SSAO、SSR、屏幕空间、three.js