agentleFS
scottsttsscottstts/Threejs-Awesome-Graphics-Agent-Skills/skills/threejs-image-pipeline/SKILL.md

threejs-image-pipeline

Skill1.1k starsChanged 5 days agoMITView on GitHub

Build a deliberate final-image pipeline for advanced Three.js scenes. Use for depth, normal, albedo, and history ownership; RenderPipeline pass ordering and outputColorTransform contracts; MSAA versus TAA policy; 15-20% screen-space guard bands; veil auditing; GTAO or bent normals; bloom; eye adaptation; tone mapping; 3D LUT grading; effect-local render targets; and pass diagnostics.

2 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill only when composing several image-space systems or defining shared buffers.

    line 8
  2. Very specific:

    Keep HDR bloom and scene-referred contrast before tone mapping, and [0, 1] display grading after it.

    line 41
  3. Distinctive:

    Prefer MSAA on the scene pass + specular AA in materials.

    line 42
  4. Distinctive:

    Do not load all atomic post skills by default.

    line 49
  5. Distinctive:

    Use this skill when multiple image-space systems must share buffers, ordering, guard bands, or output ownership.

    line 53

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Image Pipeline

Use this skill only when composing several image-space systems or defining shared buffers. For one effect, load its atomic skill instead.

Load:

  • $threejs-lighting-and-gi for direct/IBL lighting, irradiance probes, and reflections;
  • $threejs-screen-space-ambient-occlusion for GTAO, builtinAOContext, bent normals, and denoising;
  • $threejs-bloom for HDR extraction and veiling glare;
  • $threejs-exposure-color-grading for exposure, tone mapping, gamut-limited grading, LUTs, and lens traits;
  • $threejs-temporal-stability for AA, guard bands, amortised passes, and motion stability.

The pipeline must expose its signals, color spaces, and ordering. Do not install a pile of effects and tune the final frame blindly.

Signal order

scene pass (MSAA + reversed depth + MRT normals/albedo where needed)
  → indirect-only AO (builtinAOContext, sky/water/emissive masked & far-faded)
  → atmosphere / transparency / participating media
  → HDR bloom (veiling glare)
  → exposure + scene-referred contrast
  → single tone map (renderOutput / RenderPipeline transform)
  → display-referred grade (gamut-limited saturation / 3D LUT)
  → subtle lens & sensor traits
  → output conversion

Read references/production-image-pipeline.md for canonical WebGPU RenderPipeline and composer pass graphs, outputColorTransform ownership, guard-band and AA contracts, veil auditing, and ownership boundaries.

Rules

  • Tone-map once; keep RenderPipeline.outputColorTransform and renderOutput(...) unambiguous.
  • Keep HDR bloom and scene-referred contrast before tone mapping, and [0, 1] display grading after it.
  • Prefer MSAA on the scene pass + specular AA in materials; keep TAA light or off so moving edges stay sharp.
  • Render a 15–20% overscan guard band (cropped on output) whenever screen-space refraction, SSR, or wide blurs can step off-frame.
  • Meter exposure from a small luminance target or reference surface anchor, not an unmeasured 8-bit frame.
  • Apply AO to indirect light only (builtinAOContext or reconstructed indirect), never multiplying final scene color.
  • Audit the veil whenever blacks lift: toggle fog, height fog, cloud haze, glare bloom, and grade black lift individually.
  • Expose per-layer debug taps (albedo, clay lighting, pre-tonemap, pre-grade, final) before tuning.
  • UI rendered in the same target needs an explicit protection strategy.
  • Do not load all atomic post skills by default. Route only the effects actually requested.

Routing boundary

Use this skill when multiple image-space systems must share buffers, ordering, guard bands, or output ownership. For one isolated effect, use its atomic skill without loading this coordinator.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.