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…

Voir la source

Mode d’emploi

  1. Copiez la commande et examinez le paquet avant de l’installer dans votre environnement agent.
  2. Consultez le document original pour les outils, identifiants et environnements requis.
  3. Décrivez les entrées et le livrable souhaité ; comparez la sortie aux sources.
npx skills add https://github.com/full-stack-skills/threejs-skills --skill threejs-postprocessing

Avant de commencer

  • L’installation n’inclut ni abonnement au modèle, ni quota API, ni accès aux fichiers.
  • Étoiles et installations reflètent l’activité, pas un test indépendant de qualité ou de sécurité.
Document Skill original

Rendu depuis le dépôt source en conservant titres, exemples, code, tableaux, liens et images.

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

du même dépôt

Autres Skills

Tous les Skills
full-stack-skills
Communauté

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.

Installations / 1h
3
GitHub Stars
14
Mis à jour
3 oct.
full-stack-skills
Communauté

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.

Installations / 1h
3
GitHub Stars
14
Mis à jour
3 oct.
full-stack-skills
Communauté

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.

Installations / 1h
3
GitHub Stars
14
Mis à jour
3 oct.
full-stack-skills
Communauté

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

Installations / 1h
3
GitHub Stars
14
Mis à jour
3 oct.