cloudai-x/threejs-skills/threejs-postprocessing
Claude Code and agent skill by cloudai-x/threejs-skills
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Three.js post-processing: composer pass chains, built-in renderer effects, and the WebGPU/TSL node pipeline — bloom, depth of field, ambient occlusion, custom screen effects. Use when adding visual effects, color grading, blur, glow, or screen-space shaders, on WebGL or with WebGPU and TSL.
Install
npx vskill@latest install cloudai-x/threejs-skills/threejs-postprocessingSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as cloudai-x/threejs-skills/threejs-postprocessing.
Three.js Post-Processing
Targets three.js r186. Examples use WebGLRenderer; the WebGPU and TSL section uses WebGPURenderer.
Quick Start
Pass Order
The composer's buffers hold linear colors; tone mapping and the sRGB conversion happen once, in OutputPass, using the renderer's settings. Build chains in this order: RenderPass → linear-space effects (bloom, depth of field, SSAO, outline, ...) → SMAAPass, after the effects whose edges it should smooth → OutputPass → FXAAPass (three/addons/postprocessing/FXAAPass.js) only when FXAA is used, because FXAA needs sRGB input. Without FXAA, OutputPass is the last pass.
SSAOPass darkens the image produced by the previous pass, so a RenderPass must come before it. RenderPixelatedPass renders the scene itself and replaces RenderPass. pass.enabled = false skips a pass without rebuilding the chain.
Composer Setup
- The composer copies the renderer's pixel ratio at construction. Call
renderer.setPixelRatio()before constructing it, orcomposer.setPixelRatio()afterwards. - The composer's buffers are not multisampled;
antialias: trueon the renderer does not reach them. For MSAA on the scene render and the composer's buffers, pass your own buffer withsamples(CSS-pixel size) and size the composer once:
- On resize, call
camera.aspect = w / h; camera.updateProjectionMatrix(); renderer.setSize(w, h); composer.setSize(w, h);— the composer resizes its buffers and every pass, pixel-ratio included. Never resize a pass by hand. composer.render()drives time-based passes (FilmPass) from its own internal timer; pass a delta in seconds only if you manage time yourself.- The composer assigns
renderToScreento the last enabled pass every frame. Setcomposer.renderToScreen = falseonly to keep the result off screen, as selective bloom does below.
Selective Bloom
Bloom only meshes marked with a layer: paint everything else black for a bloom-only composer that renders off screen, then mix its texture into a final composer that renders the clean scene. scene.background is not a mesh: set it to null around bloomComposer.render(), or it is added to the final image a second time; on resize, call setSize on both composers.
Depth of Field
Ambient Occlusion
Outline
More Passes
Film grain, glitch, halftone and vignette are drop-in filters for the middle of the chain. ColorCorrectionShader works like the vignette: a ShaderPass with powRGB / mulRGB / addRGB uniform vectors. Its default powRGB of (2, 2, 2) darkens the image; start from (1, 1, 1) for neutral.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/threejs-postprocessing/SKILL.md
Popularity
- Repository stars
- 2,198
- Repository forks
- 252
- 7-day trend score
- 38
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 Mar 2026, 8 months ago.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/cloudai-x/threejs-skills/threejs-postprocessing)