/web3d-craft:shader-art-codingfrom web3d-craft
Writes, debugs, and art-directs procedural GLSL fragment shaders (Shadertoy mainImage, WebGL2 / GLSL ES 3.00): SDF raymarching, procedural buildings/cities, 2D distance-field graphics, noise / fBm / domain warping, terrain, ocean/coastal water optics, clouds and other volumes, PBR lighting, color and tonemapping. Ships a verified GLSL building-block library with a bundler and checker. Use when the user asks for a shader, Shadertoy, GLSL/.frag/.glsl code, a raymarcher, an SDF scene, a procedural texture or generative visual, or wants a shader fixed, optimized, ported or explained. Not for HLSL/Unity ShaderLab or non-graphics GPU compute.
Ships in web3d-craft. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Treat shader work as visual engineering: start from the intended image, choose the smallest mathematical model that can produce it, build it in inspectable stages, and verify each stage with a debug view.
references/subject-routing.md:
2D distance fields (posters, icons, patterns), SDF raymarching (objects, characters), heightfield marching
(landscapes), volume integration (clouds, smoke, fire).python3 scripts/glsl_tools.py search <words> or
references/library-index.md, and call them by name. Do not paste or re-derive library code; it is tested.python3 scripts/glsl_tools.py bundle shader.glsl -o out.glsl inlines exactly the
functions used. python3 scripts/glsl_tools.py check out.glsl lints it and compiles it with glslangValidator
when installed. Fix every error, then deliver out.glsl.Run the scripts from this skill's directory. They need only Python 3.
vec2 uv = (2.0 * fragCoord - iResolution.xy) / iResolution.y;, so one pixel is
2.0 / iResolution.y.vec2 map(vec3 p) returns vec2(distance, materialId). raymarch, calcNormal,
softShadow, calcAO and sdfThickness all use it.#define DEBUG_MODE 0 with 0 final, 1 distance field, 2 normals, 3 ids, 4 steps, 5 masks,
6 lighting terms.srgbToLinear. Then exposure, then the
tonemap (tonemapAgX by default, per AA sample), then the average, then linearToSrgb once, then
ditherTPDF.@exact / @bound / @approx tags. If a deformation pushes Lipschitz above 1,
divide the distance or lower the stepScale of raymarch.#version line, no custom uniforms, no gl_FragColor / texture2D / iGlobalTime.?: on structs. Use vec2(distance, id) or if.2.0 * PI, clamp(x, 0.0, 1.0).fract(sin(...) * 43758.5453) hashes. Use hash12 / hash22 / hash33 (integer PCG). Replace them even
when porting with "keep the look": the sine hash's exact pattern already differs between GPUs, and a PCG hash on
the same integer cell ids gives the noise the same look. check reports a sine hash as an error.atan(0, 0), pow of negatives, sqrt of negatives, normalize(vec3(0)).dFdx / fwidth out of non-uniform branches and loops, or use an explicit pixel size.Read only what the task needs:
| File | Read when |
|---|---|
references/subject-routing.md | starting from a subject ("a jellyfish", "mountains"); maps formal names to subjects |
references/library-index.md | choosing functions: every library function with signature, exactness and uses |
references/sdf-library-guide.md | modeling: exactness tiers, blends, neighbor-checked repetition, deformation limits, WebGL pitfalls |
references/rendering-pipeline.md | lighting rigs, shadows/AO, sky and fog, volumes, tonemapping, AA, performance |
references/noise-use-cases.md | choosing Perlin/value/simplex/cellular noise, fBm/ridged/billow/warp/hybrid recipes, game use cases and primary-source code links |
references/procedural-buildings.md | parcel IDs, building massing, setbacks/roofs, facade filtering, city repetition and game integration |
references/terrain-production.md | terrain representations, designed valleys, slope/altitude materials, tracing limits, chunks and LOD |
references/water-quality.md | high-quality ocean/coastal water, wave derivatives, Fresnel/refraction/absorption, foam, presets and engine-side upgrades |
references/shader-workflow.md | planning a complex shader end to end; review checklist |
references/composition-and-debugging.md | the image reads poorly, or something is visually wrong |
references/formula-cookbook.md | multi-step recipes: modular cell lattices, terrain synthesis, organic composition |
references/formula-code-couples-sdf.md | equation-to-code for organic and modular SDF features |
references/formula-code-couples-terrain.md | heightfields, density fields, accumulation, atmosphere |
references/formula-code-couples-materials.md | masks, palettes, lighting terms, polish, motion |
Templates in templates/ are complete, render-verified starting points (gallery in the repository README):
raymarch-sdf.glsl, terrain.glsl, ocean.glsl, volumetric-clouds.glsl, sdf-2d-poster.glsl,
pattern-swatches.glsl, noise-progression.glsl, noise-terrain-map.glsl, procedural-city.glsl,
alpine-valley.glsl, coastal-water.glsl.
When writing a shader:
mainImage(out vec4 fragColor, in vec2 fragCoord).DEBUG_MODE switches and name the art controls as constants at the top.// @variant QUALITY=3 (or another defined integer macro) so CI compiles
and renders them. Preserve horizon/shore contact and temporal filtering before adding detail.When improving an existing shader:
agents/openai.yaml (opens in a new tab)glsl/architecture.glsl (opens in a new tab)glsl/atmosphere.glsl (opens in a new tab)glsl/camera.glsl (opens in a new tab)glsl/color.glsl (opens in a new tab)glsl/common.glsl (opens in a new tab)glsl/debug.glsl (opens in a new tab)glsl/domain.glsl (opens in a new tab)glsl/hash.glsl (opens in a new tab)glsl/intersect.glsl (opens in a new tab)glsl/noise.glsl (opens in a new tab)glsl/operators.glsl (opens in a new tab)glsl/pattern.glsl (opens in a new tab)glsl/post.glsl (opens in a new tab)glsl/raymarch.glsl (opens in a new tab)glsl/sdf2d.glsl (opens in a new tab)glsl/sdf3d.glsl (opens in a new tab)glsl/shading.glsl (opens in a new tab)glsl/tonemap.glsl (opens in a new tab)glsl/volume.glsl (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub giofornari/skills --plugin web3d-craft7 skills in this plugin
/awwwards-3dBuild production-grade Awwwards-style scroll-driven 3D websites in the visual language of Active Theory, Lusion, 14islands, Bonhomme, Resn, Studio Freight, Locomotive, and Igloo Inc. Use when the user asks for an "Awwwards-style", "scroll-driven 3D", "WebGL hero", "3D landing page", "interactive product showcase", "scroll storytelling site", "cinematic web experience", "creative dev portfolio", "premium 3D site", "Lusion-style", "Active Theory-style", "scroll 3D animation", or mentions Three.js + GSAP + Lenis together. Also triggers on Mongolian phrases like "3D вэб", "scroll-тэй 3D", "premium вэбсайт", "cinematic вэб", "Awwwards маягтай", "3D landing", "интерактив 3D". Locks tech stack to Three.js r170 + GSAP 3.12.5 + Lenis 1.1.0 with three's built-in `EffectComposer` for post-processing. Produces single-file HTML deliverables when possible. Do NOT use for: static marketing sites without 3D, plain React/Next.js apps, dashboards, admin UIs, or simple landing pages where 3D would be decorative noise./inspira-uiUsare per scegliere, installare e adattare componenti Inspira UI (Vue/Nuxt, porting di Magic UI e Aceternity) nel sito PCC 2027, fase 3 (design e scroll) e fase 4 (build Nuxt). Copre scelta del componente, dipendenze, copia del sorgente da commit fissato, e i controlli obbligatori su reduced-motion, contrasto, peso e richieste esterne. Non per React/Next.js (lì c'è magic-ui)./premium-3d-websiteGuidelines for building premium 3D websites, focusing on custom WebGL shaders, post-processing, physics-based interactions, smooth animations, preloaders, and device optimization./reanimateClone a section, widget, page or animation from any reference (a live website URL, a screen recording, an mp4/mov/webm, a gif, a Lottie file, a prototype export) frame by frame into the user's own codebase, then record the clone and verify it against the reference frame by frame, iterating until timing, easing, sequence and layout match. Use whenever the user wants to clone, copy, replicate, recreate, reverse-engineer, port or "steal" a hero, section, widget, marquee, carousel, hover effect, page transition, loader, scroll animation or interaction from a site or video, says "make it look/feel/move like this", "same animation as", "match this exactly", or hands over a gif/video and asks to build it, including when they also want to add their own content, colours or extra features on top, or only want part of the reference (one section, one widget, a few seconds)./scroll-craftBuild premium scroll-driven landing pages for service, product, food, and drink brands. Plan the visitor journey, page grammar, emotional peak, and bespoke signature move. Create dimensional heroes with independent visual planes, restrained motion, and separate mobile composition. Use supplied photos and footage or generate photoreal assets through kie.ai, write semantic HTML, and verify desktop, mobile, and reduced-motion scroll states visually. Use for "scrollcraft", "scroll craft", "layered hero", "premium hero", "cinematic hero", "scrollytelling", "scroll animation site", "a site where scrolling plays a video", "Apple-style landing page", "3D scroll world", "interactive landing page", "make my brand a scroll experience", "this looks like a template", or requests for a distinctive website that feels like an experience rather than a document.
/web3d-integration-patternsMeta-skill for combining Three.js, GSAP ScrollTrigger, React Three Fiber, Motion, and React Spring for complex 3D web experiences. Use when building applications that integrate multiple 3D and animation libraries, requiring architecture patterns, state management, and performance optimization across the stack. Triggers on tasks involving library integration, multi-library architectures, scroll-driven 3D experiences, physics-based 3D animations, or complex interactive 3D applications.