Three.js post processing
Orders bloom, ambient occlusion and antialiasing passes in three.js correctly, so scenes stop looking washed out.
Claude's review
8/10 Correct composer pass ordering with runnable WebGL and WebGPU examples and a symptom diagnosis table.
We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.
In detail
Build a correct three.js post-processing chain: EffectComposer with RenderPass, ambient occlusion (GTAOPass), bloom (UnrealBloomPass), OutputPass for tone mapping and sRGB, and antialiasing with an MSAA render target or SMAAPass, plus the WebGPU equivalent with RenderPipeline and TSL nodes (pass, bloom). Use when adding bloom, glow, ambient occlusion, SSAO, antialiasing or any screen effect, or when a scene gets washed out, too dark, banded, jagged or loses its colors after adding EffectComposer, or when porting post-processing to WebGPURenderer.
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: postprocessing-pipeline
description: >-
Build a correct three.js post-processing chain: EffectComposer with RenderPass, ambient occlusion (GTAOPass), bloom (UnrealBloomPass), OutputPass for tone mapping and sRGB, and antialiasing with an MSAA render target or SMAAPass, plus the WebGPU equivalent with RenderPipeline and TSL nodes (pass, bloom). Use when adding bloom, glow, ambient occlusion, SSAO, antialiasing or any screen effect, or when a scene gets washed out, too dark, banded, jagged or loses its colors after adding EffectComposer, or when porting post-processing to WebGPURenderer.
when_to_use: Adding or fixing screen-space effects (bloom, AO, antialiasing, tone mapping in a composer) in WebGLRenderer or WebGPURenderer.
license: Apache-2.0
metadata:
author: three.ws
short-description: EffectComposer and RenderPipeline chains with correct color, AA and resize
---
# Post-processing pipelines in three.js
Targets three.js r187 (`three@0.187.0`). Every runnable block is executed in Chromium against
a real CC0 model before this plugin ships.
The rule that prevents most composer bugs: **once you use a composer, tone mapping and the
sRGB conversion happen in `OutputPass`, not in the renderer.** `renderer.toneMapping` is
still where you choose the curve, and `OutputPass` reads it. Without `OutputPass` the image
comes out dark and flat (linear values on an sRGB screen). With `OutputPass` in the wrong
place, effects after it run on already tone-mapped colors.
The order that works:
1. `RenderPass` draws the scene into a half-float buffer (linear, HDR).
2. Effects that need linear HDR values: AO, bloom, depth of field.
3. `OutputPass`: tone mapping plus linear to sRGB.
4. Effects that want display colors: `SMAAPass`, FXAA, film grain, vignette.
## 1. WebGLRenderer: bloom, output and MSAA
A composer renders into its own target, so the canvas `antialias: true` flag no longer
helps. Give the composer a multisampled render target instead (WebGL2 MSAA, cheap and sharp).
```js
import * as THREE from 'three';
import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
import { RoomEnvironment } from 'three/addons/environments/RoomEnvironment.js';
import { EffectComposer } from 'three/addons/postprocessing/EffectComposer.js';
import { RenderPass } from 'three/addons/postprocessing/RenderPass.js';
...From nirholas's repository, Apache-2.0 licence.
Related skills
-
Checked
TinyBase app builder
Scaffolds and extends local first JavaScript apps with TinyBase, including schemas, persistence and sync.
7/101 credit -
Checked
ComfyUI custom node UI
Adds widgets, sidebar tabs, commands and dialogs to ComfyUI custom nodes, so your node feels built in.
8/101 credit -
Checked
Scrolling menu upgrade
Finds outdated react-horizontal-scrolling-menu code and rewrites it for version 8 so the menu works again.
7/101 credit -
Checked
Screenshot to React code
Rebuilds a screenshot or mockup as React, TypeScript and Tailwind code that closely matches the design.
7/101 credit -
Checked
Map location picker
Adds a map pin picker to a web form, so users can choose and submit one exact spot like a delivery address.
7/101 credit -
Checked
Port code to Rust
Ports C, C++, Python, Go or JavaScript code into idiomatic Rust, with tests that prove it behaves the same.
9/101 credit