cloudai-x avatar

Threejs Postprocessing

This is your go-to when you need post-processing effects in Three.js. It covers EffectComposer setup and the full pipeline: bloom, selective bloom, depth of field, SSAO, anti-aliasing (both FXAA and SMAA), film grain, vignette, outlines, and more. The examples are practical, like how to do bloom on specific objects only or how to properly handle window resizing so your effects don't break. One thing to note: the post-processing pipeline adds render overhead, so you'll want to be selective about which effects you stack. Good reference for both common effects and the weirder stuff like halftone or glitch passes.

skills.sh installs
17.6K
GitHub stars
4.1K
last updated
Aug 21, 2026

Install

$ npx -y skills add cloudai-x/threejs-skills --skill threejs-postprocessing --agent claude-code

Installs into .claude/skills of the current project.

Files

Three.js Post-Processing

Targets three.js r186. Examples use WebGLRenderer; the WebGPU and TSL section uses WebGPURenderer.

Quick Start

import * as THREE from "three";
import { EffectComposer } from "three/addons/postprocessing/EffectComposer.js";
import { RenderPass } from "three/addons/postprocessing/RenderPass.js";
import { UnrealBloomPass } from "three/addons/postprocessing/UnrealBloomPass.js";
import { OutputPass } from "three/addons/postprocessing/OutputPass.js";

const renderer = new THREE.WebGLRenderer({ antialias: true });
renderer.setPixelRatio(window.devicePixelRatio);
renderer.setSize(window.innerWidth, window.innerHeight);
document.body.appendChild(renderer.domElement);

const scene = new THREE.Scene();
const camera = new THREE.PerspectiveCamera(60, window.innerWidth / window.innerHeight, 0.1, 100);
camera.position.set(0, 0, 5);

// A bright emissive sphere gives bloom something to pick up
const mesh = new THREE.Mesh(
  new THREE.SphereGeometry(1, 32, 16),
  new THREE.MeshStandardMaterial({ color: 0x222222, emissive: 0xffffff, emissiveIntensity: 2 }),
);
scene.add(mesh);

Sponsors

Details

Repository
github.com/cloudai-x/threejs-skills
Categories
Design & UI/UX, CLI & Terminal

More from cloudai-x/threejs-skills

All 10
1madteacher avatarflutter-animationsmadteacher/mad-agents-skillsAdd, fix, refactor, debug, test, or explain Flutter animations and motion effects. Use when working with implicit animations such as AnimatedContainer, Animated15.5Kskills.sh installs
2vercel avatarbuilding-componentsvercel/components.buildGuide for building modern, accessible, and composable UI components. Use when building new components, implementing accessibility, creating composable APIs, set15.1Kskills.sh installs
3anthropics avatardata-visualizationanthropics/knowledge-work-pluginsCreate effective data visualizations with Python (matplotlib, seaborn, plotly). Use when building charts, choosing the right chart type for a dataset, creating 14.5Kskills.sh installs
4superdesigndev avatarsuperdesignsuperdesigndev/superdesign-skillDesign or redesign frontend UI on the Superdesign canvas. Use whenever the user wants to design a page, feature, flow, or a brand-new product with no code yet; 11.8Kskills.sh installs
5alchaincyf avatardarwin-skillalchaincyf/darwin-skillDarwin Skill 2.0 (达尔文.skill 2.0): autonomous skill optimizer, v2.0 integrates Microsoft Research SkillLens (arXiv 2605.23899) 9-dim rubric + SkillOpt (arXiv 26011.4Kskills.sh installs
6diffusionstudio avatartext-to-lottiediffusionstudio/lottieCreate, edit, or fix Lottie/Bodymovin JSON animations for the local Skia Skottie player. Use for text-to-Lottie, SVG/logo/type animation, loaders/icons, state f11.3Kskills.sh installs