threejs-procedural-fields
Skill1.1k starsChanged 4 days agoMITView on GitHub
Build coherent procedural scalar and vector fields for Three.js materials and geometry. Use for terrain, planets, wear, biomes, clouds, water masks, displacement, roughness, normals, domain warping, and any visual where several channels must derive from shared causes.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- linegel/threejs-complete-set-of-skilltheir own version, first seen Jul 28, 2026
- jorgeasaurus/agent-skillsword for word, first seen May 11, 2026
Other versions2 projects use a version of this.
Word for word · 1
- jorgeasaurus/agent-skills★ 14100% same
Edited · 0
None found.
Wrote their own version · 1
- linegel/threejs-complete-set-of-skill★ 9same name
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 repository29 other files it gives its agents.
- .codex/AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- threejs-atmosphere-aerial-perspectiveSkill
- threejs-bloomSkill
- threejs-camera-directionSkill
- threejs-exposure-color-gradingSkill
- threejs-image-pipelineSkill
- threejs-lighting-and-giSkill
- threejs-parallax-occlusion-mappingSkill
- threejs-precipitation-surfacesSkill
- threejs-procedural-animationSkill
- threejs-procedural-architectureSkill
- threejs-procedural-geometrySkill
- threejs-procedural-materialsSkill
- threejs-procedural-planetsSkill
- threejs-procedural-vegetationSkill
- threejs-procedural-vfxSkill
- threejs-raymarched-space-effectsSkill
- threejs-reference-readingSkill
- threejs-screen-space-ambient-occlusionSkill
- threejs-shadow-systemsSkill
- threejs-skill-routerSkill
- threejs-spectral-oceanSkill
- threejs-temporal-stabilitySkill
- threejs-temporal-surfacesSkill
- threejs-terrain-and-landscapesSkill
- threejs-visual-validationSkill
- threejs-volumetric-cloudsSkill
- threejs-water-opticsSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
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
Do not start by stacking noise.
- Distinctive: line 12
Before shader code, write a field bundle:
- Distinctive: line 36
Create named primary fields.
- Distinctive: line 39
Add debug output for every named field.
- Distinctive: line 56
Use different frequency bands for silhouette, regions, surface breakup, and micro-normal.
- Distinctive: line 57
Do not displace geometry with frequencies the mesh cannot represent.
- Distinctive: line 58
Keep categorical masks broad enough to avoid isolated “bubble” regions.
- Very specific: line 63
Use this skill when the shared field model is the task.
≈ “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.
Files
Procedural Fields
Do not start by stacking noise. Start by defining the fields the object physically or stylistically needs.
Field contract
Before shader code, write a field bundle:
coordinates
→ macro form
→ meso structure
→ derived causes
→ material channelsExample:
sphereDirection
→ warpedDirection
→ elevation + ridges + craterDepth
→ slope + cavity + latitude + moisture
→ biome + color + roughness + bumpRequired workflow
- Choose coordinates that remain stable under camera and object motion.
- Lock real or perceptual scale for each frequency band.
- Create named primary fields. Never hide the whole look in one expression.
- Derive secondary fields from causes: slope from normals, shore from sea-level distance, wear from exposure, dirt from cavity.
- Reuse the same fields across color, roughness, normal, displacement, emission, and scattering.
- Add debug output for every named field.
- Filter high-frequency fields by derivatives, tessellation density, or camera distance.
Read references/field-stack-recipes.md before implementation. It records sphere, terrain, water, and structured-placement field contracts plus common parity defects.
Read the procedural planet surface for a shared CPU/GLSL field bundle whose height, continents, climate, biomes, roughness, and normals remain independently inspectable.
Non-negotiable rules
- Independent noise per channel produces visual soup. Share structure.
- Domain warp the coordinates, not every result.
- Warp spherical coordinates tangentially, then renormalize.
- Use different frequency bands for silhouette, regions, surface breakup, and micro-normal.
- Do not displace geometry with frequencies the mesh cannot represent.
- Keep categorical masks broad enough to avoid isolated “bubble” regions.
- Parameter names must describe perception:
ridgeWidth,coastBlend,cavityDarkening, notnoise3Amount.
Routing boundary
Use this skill when the shared field model is the task. Use
$threejs-procedural-materials when the task is channel assembly and material
response, and $threejs-procedural-planets when the deliverable is a complete
planetary body.
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.

