---
name: threejs-procedural-vfx
description: Author production real-time VFX in Three.js. Use for filmic HDR lens-flare compositors, highlight-derived ghosts, field-angle pupil deformation, localized glare and bloom, raymarched aurora curtains, finite-footprint emissive slabs, uniform volume integration, equirectangular radiance probes, WebGPU voxel fire and smoke, coupled volumetric fluid fields, mesh-surface emitters, signed-distance fire collisions, ship-conforming reentry plasma, generated capsule wakes, instanced analytic sparks, timed dissolving debris, dense-swap effect pools, additive holographic projections, Fresnel rim shells, scanline banding, glitch displacement, swept shape-to-shape handovers, and explicit scene-relative HDR emission hierarchy.
title: threejs-procedural-vfx
canonical_url: https://skilld.dev/gh/scottstts/threejs-awesome-graphics-agent-skills/threejs-procedural-vfx
last_updated: 2026-10-23T06:10:44.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> 33 supporting files sit beside this SKILL.md. When the Skill refers to one, fetch https://skilld.dev/api/skills-raw/scottstts/threejs-awesome-graphics-agent-skills/threejs-procedural-vfx/PATH with PATH replaced.
>
> If the user asked to install this Skill, run `npx skilld install scottstts/threejs-awesome-graphics-agent-skills/threejs-procedural-vfx`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/threejs-procedural-vfx`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/scottstts/threejs-awesome-graphics-agent-skills/threejs-procedural-vfx) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/threejs-procedural-vfx`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/threejs-procedural-vfx --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/threejs-procedural-vfx --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Procedural VFX

Build effects from an event envelope, motion field, geometry representation, and shading response. Avoid independent particle emitters that happen to share a color.

This skill contains exemplary examples and assets beyond descriptive guidance,
they're worth studying, referencing, or even copying. Use them sufficiently
when relevant and do NOT blindly skip them.

## Effect graph

```text
subject/event state
  → effect-specific geometry, voxel fields, or instance attributes
  → flow-facing masks or analytic age
  → material response
  → pool/lifetime ownership
  → HDR and bloom contribution
```

Read [references/procedural-vfx-system.md](https://skilld.dev/api/skills-raw/scottstts/threejs-awesome-graphics-agent-skills/threejs-procedural-vfx/references/procedural-vfx-system.md)
for ship-conforming reentry shells, capsule wakes, dense instanced
spark/debris pools, holographic projection shells, HDR hierarchy, and
implementation limits.

Read [references/volumetric-fluid-fire.md](https://skilld.dev/api/skills-raw/scottstts/threejs-awesome-graphics-agent-skills/threejs-procedural-vfx/references/volumetric-fluid-fire.md)
for three-dimensional texture ownership, fixed fluid-compute scheduling,
mesh-surface injection, pressure projection, moving SDF boundaries,
temperature-mapped HDR raymarching, exact presets, and failure diagnostics.

Read [references/volumetric-aurora-curtains.md](https://skilld.dev/api/skills-raw/scottstts/threejs-awesome-graphics-agent-skills/threejs-procedural-vfx/references/volumetric-aurora-curtains.md)
for finite emissive-slab bounds, warped curtain density, uniform ray steps,
gentle start jitter, matching screen/probe materials, exact constants, limits,
and failure diagnostics.

Read [references/filmic-lens-flare.md](https://skilld.dev/api/skills-raw/scottstts/threejs-awesome-graphics-agent-skills/threejs-procedural-vfx/references/filmic-lens-flare.md) for HDR
emitter extraction, optical-axis invariants, field-angle pupil deformation,
finite ghost families, spectral rings, localized bloom, film response, exact
constants, limits, and failure diagnostics.

Read the [reentry plasma implementation](https://skilld.dev/api/skills-raw/scottstts/threejs-awesome-graphics-agent-skills/threejs-procedural-vfx/examples/reentry-plasma/reentry-plasma.js)
for closed layered wake shells, flow-axis deformation, advected filament
fields, opacity shaping, and additive emission diagnostics.

Read the
[hologram projection material](https://skilld.dev/api/skills-raw/scottstts/threejs-awesome-graphics-agent-skills/threejs-procedural-vfx/examples/holographic-shape-transition/hologram-material.js)
for the additive rim shell itself: squared Fresnel incidence with grazing
falloff, footprint-filtered object-space scanlines, height-phased glitch
displacement, and index-gated participation. Read its
[shape-transition driver](https://skilld.dev/api/skills-raw/scottstts/threejs-awesome-graphics-agent-skills/threejs-procedural-vfx/examples/holographic-shape-transition/hologram-transition.js)
for the shared sweep range across a shape set, the linear progress ramp inside a
longer dwell, and the complementary-discard handover.

Read the
[volumetric fluid fire implementation](https://skilld.dev/api/skills-raw/scottstts/threejs-awesome-graphics-agent-skills/threejs-procedural-vfx/examples/volumetric-fluid-fire/volumetric-fluid-fire.js)
for the complete WebGPU/TSL velocity, dye, pressure, vorticity, emitter,
collision, raymarch, and diagnostic system plus its calibrated fire preset.

Read the
[raymarched aurora implementation](https://skilld.dev/api/skills-raw/scottstts/threejs-awesome-graphics-agent-skills/threejs-procedural-vfx/examples/raymarched-aurora-curtains/aurora-curtains.js)
for the reusable emitting field, perspective-ray material, four-sample
equirectangular radiance material, shared uniforms, and calibrated curtain
preset without sky, terrain, weather, lighting, or renderer setup.

Read the
[filmic lens-flare implementation](https://skilld.dev/api/skills-raw/scottstts/threejs-awesome-graphics-agent-skills/threejs-procedural-vfx/examples/filmic-lens-flare/filmic-lens-flare.js)
for top-origin HDR sun detection, panorama-ray reconstruction, stable source
projection, finite radial ghost families, field-deformed pupil shapes, spectral
ring and star response, localized bloom, and the complete filmic composite.

## Rules

- Every layer must have a role in silhouette, motion, illumination, or residue.
- Give velocity, dye, pressure, vorticity, and collisions explicit texture
  ownership and one fixed compute schedule.
- For low-angle aurora, use a finite shallow emitting footprint, uniform ray
  steps, gentle start jitter, and step-length-weighted accumulation. Do not add
  extinction or an elevation gate after the footprint already removes the long
  limb path.
- Keep aurora emission separable from sky, stars, atmosphere, terrain lighting,
  weather, and grading; expose the same radiance through perspective and
  equirectangular materials.
- Convert velocity to volume UVW with the world-size vector; never advect a
  non-cubic volume as though its axes had equal scale.
- Keep the pressure ping-pong endpoint consistent with the projection read.
- Use normalized lifetime curves instead of scattered time constants.
- Derive secondary motion from the same flow or event direction.
- Keep bloom as a response to HDR emission, not as the effect's only shape.
- Derive lens ghosts from an HDR emitter, keep every synthetic centre on one
  optical axis, and deform pupil footprints from object-space field angle rather
  than screen radius.
- Keep the lens-flare family finite; do not extend calibrated terminal haze into
  an arbitrary bead chain or place diffraction stars at ghost centres.
- Pool instances and trails; do not allocate per burst.
- Filter every periodic band by pixel footprint, and fade it to the band's own
  mean rather than to zero.
- Measure rim incidence in a frame built from an inverse-transpose normal matrix.
- Give a multi-shape transition one shared normalised range and complementary
  discards, never per-shape ranges or overlapping coverage.
- Expose spawn, simulation, overdraw, and luminance debug views.
- Include a non-bloom baseline that remains legible.

## Routing boundary

Use `$threejs-procedural-materials` and `simulated-paper-burning` when flames
must be coupled to a burning sheet's mechanics, char fracture and soot.

Use `$threejs-temporal-surfaces` only for the screen-space
frost/touch-history pipeline. Use `$threejs-precipitation-surfaces` for
falling rain or snow, splash flipbooks, and weather events that alter ground
materials. Use `$threejs-volumetric-clouds` for atmospheric weather layers and
planet-scale cloud volumes. Use `$threejs-atmosphere-aerial-perspective` for
molecular/aerosol sky scattering and surface-segment aerial perspective. Keep
standalone filmic HDR lens-flare compositors, emissive aurora curtain volumes,
bounded interactive fire and smoke, subject-space plasma, generated wakes,
sparks, pooled debris, and additive projection shells in this skill. Keep lens
flare in `$threejs-atmosphere-aerial-perspective` when it remains one stage in a
shared sky-scattering and aerial-perspective composition.
