threejs-raymarched-space-effects
Skill872 starsChanged 3 months agoMITView on GitHub
Build raymarched space phenomena in Three.js. Use for black-hole lensing, accretion disks, wormhole throat transits, curved-ray and null-geodesic integration, lensed celestial spheres, procedural star fields and galactic skies, relativistic-looking distortion, bounded volumetric structures, and GPU effects that need controlled numerical integration.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- jorgeasaurus/agent-skillsedited, first seen May 11, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- jorgeasaurus/agent-skills★ 1386% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository24 other files it gives its agents.
- .codex/AGENTS.mdAGENTS.md
- threejs-atmosphere-aerial-perspectiveSkill
- threejs-bloomSkill
- threejs-camera-directionSkill
- threejs-exposure-color-gradingSkill
- threejs-image-pipelineSkill
- threejs-parallax-occlusion-mappingSkill
- threejs-precipitation-surfacesSkill
- threejs-procedural-animationSkill
- threejs-procedural-architectureSkill
- threejs-procedural-fieldsSkill
- threejs-procedural-geometrySkill
- threejs-procedural-materialsSkill
- threejs-procedural-planetsSkill
- threejs-procedural-vegetationSkill
- threejs-procedural-vfxSkill
- threejs-screen-space-ambient-occlusionSkill
- threejs-shadow-systemsSkill
- threejs-skill-routerSkill
- threejs-spectral-oceanSkill
- threejs-temporal-surfacesSkill
- threejs-visual-validationSkill
- threejs-volumetric-cloudsSkill
- threejs-water-opticsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 5 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
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
- Distinctive: line 8
Treat these effects as numerical renderers with explicit integration state.
- Distinctive: line 23
Add diagnostics for trajectory, step count, and termination reason.
- Distinctive: line 58
Do not call a UV swirl “gravitational lensing.”
- Distinctive: line 60
Use continuous crossing tests for thin structures.
- Distinctive: line 61
Keep numerical stability independent from frame rate.
- Very specific: line 76
Use $threejs-procedural-vfx for ordinary particles, trails, plasma, and event effects.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.
Files
Raymarched Space Effects
Treat these effects as numerical renderers with explicit integration state. The visual character depends on coordinate choice, step policy, and how rays interact with emissive structures.
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.
Workflow
- Define the effect-space transform and camera ray.
- Choose a physical, physically inspired, or purely artistic bending model.
- Bound the integration domain.
- Track ray position, direction, throughput, and accumulated radiance.
- Detect crossings with disks, shells, throats, or event boundaries.
- Sample the background only after integration terminates, filtered by the ray-bundle footprint rather than point sampled.
- Add diagnostics for trajectory, step count, and termination reason.
Read references/curved-ray-integrators.md for the two wormhole throat models, observer transport through a throat, the artistic curved-ray accretion integrator, disk composition, and implementation defects.
Read references/lensed-celestial-spheres.md for footprint-filtered skies, flux-conserving star point spreads, dust extinction, bright sources under display clipping, progressive accumulation, and the bloom kernel a compact source needs.
Read the curved-ray accretion volume for the inverse-square steering loop, thin disk density, front-to-back accumulation, deterministic star environment, and integrator diagnostics.
Read the Schwarzschild geodesic black-hole effect for RK2 null-geodesic integration, interpolated equatorial disk crossings, Doppler/redshift disk emission, lensed procedural deep field, and HDR bloom composition.
Read the traversable wormhole transit for adaptive RK4 integration of the reduced geodesic system, an observer frame parallel-transported through the throat, exterior-region selection, progressive Halton accumulation, and the 13-tap bloom pyramid; its celestial spheres are a standalone GLSL chunk for the footprint-filtered galactic sky, resolved star layers, and the analytic ringed planet a lensed ray lands on.
Constraints
- Do not call a UV swirl “gravitational lensing.”
- Cap iterations and provide early termination.
- Use continuous crossing tests for thin structures.
- Keep numerical stability independent from frame rate.
- Separate the integrator from shading of the accretion disk or wormhole interior.
- Size the step from the local curvature scale, not from a global constant, once the metric has a narrow feature such as a lensing shoulder.
- Filter the background by the ray-bundle footprint. A lensed map compresses solid angle enough that a point sample aliases where the image is most interesting.
- Give capped rays a defined result. Their exit direction is arbitrary, so route them to a mean-radiance path rather than letting them speckle.
- Carry a transported frame, not a Cartesian camera, when the domain has no global Cartesian chart.
- Provide a cheaper approximation for non-hero views.
Routing boundary
Use $threejs-procedural-vfx for ordinary particles, trails, plasma, and event
effects. This skill is for per-pixel numerical ray integration through curved
or bounded space-effect domains.
Progressive accumulation and the bloom pyramid shipped with the wormhole example
are owned by that renderer because the integration cost forces them. For a
scene-wide HDR bloom pass over ordinary geometry use $threejs-bloom, and for
exposure metering, tone-map ownership, and LUT grading use
$threejs-exposure-color-grading.
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
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.

