threejs-shaders
Skill4 starsChanged 3 months agoMITView on GitHub
Write and debug Three.js GLSL shaders, custom material effects, uniforms, and shader deformation.
7 other projects use a version of this.
Adopted by
Most recently taken up by
- calesthio/OpenMontagetheir own version, first seen Oct 3, 2026
- codetesla51/skillstheir own version, first seen Sep 25, 2026
- ruloCode/hermes-ostheir own version, first seen Jul 9, 2026
- kumaran-is/claude-code-onboardingtheir own version, first seen May 25, 2026
- huangzida/skillstheir own version, first seen Apr 4, 2026
- patrickcohen/claude-skills-collectiontheir own version, first seen Feb 23, 2026
Other versions7 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 7
- calesthio/OpenMontage★ 63ksame name
- CloudAI-X/threejs-skills★ 3.5ksame name
- kumaran-is/claude-code-onboarding★ 36same name
- ruloCode/hermes-os★ 15same name
- huangzida/skills★ 2same name
- codetesla51/skills★ 1same name
- patrickcohen/claude-skills-collection★ 1same 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 repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- threejs-accessibilitySkill
- threejs-animationSkill
- threejs-assetsSkill
- threejs-audioSkill
- threejs-debuggingSkill
- threejs-deploymentSkill
- threejs-geometrySkill
- threejs-htmlSkill
- threejs-interactionSkill
- threejs-lightingSkill
- threejs-materialsSkill
- threejs-particlesSkill
- threejs-performanceSkill
- threejs-physicsSkill
- threejs-postprocessingSkill
- threejs-product-viewerSkill
- threejs-r3fSkill
- threejs-sceneSkill
- threejs-spatial-dataSkill
- threejs-testingSkill
- threejs-webgpuSkill
- threejs-webSkill
- threejs-xrSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 5 are distinctive, and 0 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
5
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use the project's installed versions and existing architecture.
- Distinctive: line 12
Write down spaces for every position, normal, light vector, and varying.
- Distinctive: line 16
When displacing vertices, update normals or calculate suitable shading, expand bounds for culling, and consider matching depth/distance …
- Distinctive: line 18
Treat onBeforeCompile and shader chunks as revision-sensitive.
- Distinctive: line 20
Check extreme parameter values, resizing, mobile precision, transparent overlap, shadows, and picking.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Custom Shaders
Use the project's installed versions and existing architecture. These instructions supplement the user's task; they do not authorize unrelated changes or external actions.
Identify the renderer, installed revision, shader language, and material extension mechanism before writing shader code. Use GLSL ShaderMaterial/RawShaderMaterial in a compatible pipeline; do not assume a WebGL shader is a drop-in WebGPU material.
Write down spaces for every position, normal, light vector, and varying. Transform normals correctly under nonuniform scale. Keep uniforms stable and update their values rather than rebuilding materials per frame. Avoid unnecessary per-fragment work and dynamic shader permutations.
Build effects incrementally: constant output, coordinates, texture sample, then the effect. Check compile/link logs with full errors enabled. Guard normalization of zero vectors, divisions near zero, and undefined smoothstep ranges. Derivatives require the appropriate stage and support.
When displacing vertices, update normals or calculate suitable shading, expand bounds for culling, and consider matching depth/distance materials for shadows. CPU raycasting still sees CPU geometry unless a matching solution is provided.
Treat onBeforeCompile and shader chunks as revision-sensitive. Use an appropriate custom program cache key when custom compile variations need distinct programs, and retain a reproducible shader fixture for upgrades. Verify display color/tone mapping at the output boundary.
Check extreme parameter values, resizing, mobile precision, transparent overlap, shadows, and picking. Preserve an ordinary material fallback when the feature is optional.
API reference
Consult the official documentation for exact signatures and revision-specific behavior. If documentation access is unavailable, inspect installed types/source and state any remaining uncertainty.
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.

