full-stack-skills/threejs-skills

threejs-postprocessing

Addon screen-space post-processing for three.js using EffectComposer, Pass base class, RenderPass, and stock passes such as UnrealBloomPass, SSAOPass, SSRPass, BokehPass, OutlinePass, FXAAPass/SMAAPass, TAARenderPass, and ShaderPass; references the Shaders…

Zobacz źródło

Jak używać

  1. Skopiuj polecenie instalacji i sprawdź źródła przed instalacją we własnym środowisku agenta.
  2. W oryginale sprawdź wymagane narzędzia, dane dostępowe i obsługiwane środowiska.
  3. Opisz dane wejściowe i oczekiwany rezultat; porównaj wynik ze źródłami.
npx skills add https://github.com/full-stack-skills/threejs-skills --skill threejs-postprocessing

Przed rozpoczęciem

  • Instalacja nie obejmuje subskrypcji modelu, limitu API ani uprawnień do plików.
  • Gwiazdki i instalacje pokazują aktywność, a nie niezależny test jakości lub bezpieczeństwa.
Oryginalny dokument Skill

Treść z repozytorium z zachowaniem nagłówków, przykładów, kodu, tabel, linków i obrazów.

When 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
  • ShaderPass with shader modules from Addons Shaders group

IMPORTANT: postprocessing vs renderers vs node-tsl

PipelineSkill
Classic composer + passesthreejs-postprocessing
Renderer output color/tone onlythreejs-renderers
Node/TSL post nodesthreejs-node-tsl

Trigger phrases include:

  • "EffectComposer", "RenderPass", "UnrealBloomPass", "SSAOPass", "后期"
  • "泛光", "环境光遮蔽", "描边"

How to use this skill

  1. Chain: RenderPass → effect passes → output; ensure size matches renderer and DPR changes.
  2. Resize: call composer.setSize alongside renderer resize workflows.
  3. Half-float: many passes expect appropriate render target types—cite docs for your version.
  4. Performance: each pass has cost—profile with renderer.info sparingly.
  5. Shader modules: link Addons Shaders list instead of inlining huge GLSL in SKILL.
  6. Output: final pass should align color management with renderer (threejs-renderers).
  7. Contrast: mention core PostProcessing class separately to avoid name collision confusion.

See examples/workflow-composer-bloom.md.

Doc map (official)

Docs sectionRepresentative links
Postprocessinghttps://threejs.org/docs/EffectComposer.html
Postprocessinghttps://threejs.org/docs/RenderPass.html
Postprocessinghttps://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:

  1. Link EffectComposer, RenderPass, or the named pass (SSAOPass, …).
  2. Contrast addon composer stack with core PostProcessing + threejs-node-tsl when users mix terms.
  3. Require setSize on composer when threejs-renderers resizes.
  4. Point to Shaders group for raw shader modules used by ShaderPass.
  5. 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

z tego samego repozytorium

Więcej Skills

Wszystkie Skills
full-stack-skills
Społeczność

threejs-audio

three.js audio spatialization: AudioListener attached to camera rig, Audio and PositionalAudio sources, AudioAnalyser for FFT/time-domain data, and integration with Web Audio API contexts; AudioLoader is referenced from threejs-loaders for file decoding. Use when placing 3D sound, configuring panner parameters, or visualization; not a replacement for full game audio middleware.

Instalacje / 1h
3
GitHub Stars
14
Aktualizacja
3 paź
full-stack-skills
Społeczność

threejs-camera

three.js cameras: Camera base, PerspectiveCamera, OrthographicCamera, CubeCamera, ArrayCamera, StereoCamera; projection matrices, aspect, FOV, orthographic frustum sizes, near/far planes, and dynamic environment maps with CubeCamera. Use when placing views, rendering reflections, or multi-view splits; for XR projections and eye matrices use threejs-webxr; for post pass camera tricks use threejs-postprocessing alongside threejs-renderers.

Instalacje / 1h
3
GitHub Stars
14
Aktualizacja
3 paź
full-stack-skills
Społeczność

threejs-controls

Addon camera and object manipulation controls: OrbitControls, MapControls, FlyControls, FirstPersonControls, TrackballControls, ArcballControls, DragControls, PointerLockControls, TransformControls; damping, target focal point, and integration with the animation loop. Use for editor-style navigation and gizmos—not a full game character controller stack; pair with Raycaster selection patterns in threejs-objects when transforming selections.

Instalacje / 1h
3
GitHub Stars
14
Aktualizacja
3 paź
full-stack-skills
Społeczność

threejs-dev-setup

Bootstrap and toolchain guidance for three.js applications using npm, Vite/Webpack/Rollup, bare ESM import maps, and TypeScript. Covers canonical import paths for three core versus three/addons/ (examples/jsm re-exports), version alignment with https://threejs.org/docs/, and fixing "module not found" for loaders and controls. Use when scaffolding a new 3D project, migrating bundler, or debugging resolution of addons—do not use for rendering API details (see threejs-renderers) or asset loading lo

Instalacje / 1h
3
GitHub Stars
14
Aktualizacja
3 paź