/3dcodeverse:c3d-glsl-craftfrom 3dcodeverse
Provides guidance for writing, refining, or repairing GLSL fragment shaders, including frame analysis metrics (static, flicker, low detail), judge rubric weights, and strong optional practices for structure, motion, lighting, and exposure.
Ships in 3dcodeverse. 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.
None: SKILL.md is the whole skill.
Read this if you are writing src/shader.frag. The contract states the interface and
what the harness measures; this sheet is the layer above it: what the measurement can and
cannot see, and a few strong options that answer the judge's recorded complaints. None of
them is a recipe — the brief decides what is on screen and how it is built.
spatial/frame_stats.py renders five frames — t = 0, 1, 2.5, 4, 6 s — and measures them:
static — the largest mean |Δ| between consecutive frames is under 0.002 (WARN, score cap 0.5 when motion is planned)flicker — a consecutive pair differs by more than 0.35 of the image (WARN, cap 0.7)black / blown — in every frame over 97 % of the pixels sit under luminance 0.03, or over 0.98 (ERROR, cap 0.5)low_detail — almost no pixel sits on a visible luminance edge (WARN)nan — any NaN / Inf pixel (ERROR, cap 0)Over the 9 graded glsl runs mined 2026-08-25 the gate fired nothing while the judge sat at
0.55-0.65: clearing it proves nothing. The judge is shader: likeness 0.26,
depth_and_detail 0.16, light_and_tone 0.16, motion_quality 0.14, composition 0.10,
technical_cleanliness 0.10, craft 0.08, plus the defect list the system prompt carries.
One hint, and only a hint at n = 9: the harness's colourfulness metric (3dcode gl-frames prints
it) ranked with the final score at +0.75, edge density at +0.40 and frame-to-frame motion at
+0.20 — the palette is worth more attention than another octave.
Scales. One octave at one frequency is both flat (flat_fill) and shimmery
(banding_or_aliasing): a recorded major issue reads "uniform high-frequency noise rather
than multi-scale fractal relief, causing severe aliasing". Fine octaves smaller than a pixel
alias — fade them with the distance or the footprint the pixel represents.
Edges. A step aliases; a transition about one pixel wide (from fwidth or the
resolution) does not. A staircase edge is the banding_or_aliasing defect.
Banding. A long two-stop gradient bands on 8-bit output (3 of 6 fancy-battery runs, 2026-08-31). A sub-LSB dither on the final colour — one hash per pixel, added after the tone-map and gamma — removes it.
Tone. Additive light sums (glow, bokeh, scattering) pass 1.0 quickly: one tone-map at
the very end keeps them under the blown threshold; gamma applied twice washes the frame
(white_wash).
Exposure first. Hue and palette work is invisible on dark, low-chroma pixels. Read the
mean luminance 3dcode gl-frames prints and compare it with what the brief's place would show
before grading colour.
Night subjects. The judge's no_dark_range and white_wash defects: a night, space or
dusk frame needs near-black pixels somewhere, and haze and bloom belong on the light, not on
the frame. 3dcode gl-frames prints the mean luminance and the black-pixel fraction — read them.
Across the flow. Water, wood, marble, cloth and stone read as a sliding texture when the pattern is stretched along the direction of movement (the judge's "texture scrolling under a fixed shape" is 0.5 on motion). Put the fine axis of the pattern across the flow and advect only the phase.
Motion from the mechanism. The frames compared are 1-2 s apart; a single scroll of the
uv by u_time gives the same delta everywhere and reads as a conveyor belt. Drive each
element from its own quantity — a drop falls with the square of its time, a flame's tips lag
its base, a spark has a hash-seeded lifetime — and give every instance a phase from its id so
t = 0 is not a symmetric frame.
Continuity. fract and mod of u_time are cuts; wrap through a smooth function,
cross-fade the wrap, or hide it under a fade that reaches zero at the wrap. A visible cut
between two sampled times is the flicker warning.
Domain warp. Feeding fbm with fbm (IQ's domain warping) gives billowing edges to clouds, smoke and marble; it costs octaves, so budget them.
Volumes. A shaft or a lit cloud is scattering integrated along the view ray: march front to back, attenuate by Beer-Lambert transmittance, weight each step by a phase function normalised over the sphere (Henyey-Greenstein, +1 forward, in light-travel directions — PBRT's convention differs) and by a short march toward the light for self-shadow. A radial falloff around a point has neither direction nor occluder: the sharpest recorded complaint, "a diffuse, uniform spherical glow rather than directional rays", is that term. A cloud is brighter where its shell is thin toward the light — sample the density a short step toward the sun and light the difference.
Surfaces. A dielectric (glass, water) is a Fresnel-weighted reflection plus a tinted transmission; a metallic tint reads as metal, not glass. GGX with Smith visibility and Schlick Fresnel on linear inputs gives a microfacet response; roughness changes the highlight's shape, a shiny colour cannot.
Raymarchers. A hit tolerance that grows with distance, the same epsilon for the normal, and a relaxed step. The critical bug of the lowest-scoring run (0.30) — "bright cyan/white pixels along the edges of all geometry at grazing angles" — was a tangential overshoot feeding a central-difference normal.
u_noise — one texture fetch is a bilinear-interpolated hash, several times cheaper
than a hash plus interpolation, so an fbm built on it affords more octaves. Scale the uv,
not the result.u_prev — this pass's previous frame: trails, motion blur, accumulation. The contract
states when it saturates.u_buffer_a — a whole extra pass. When the effect is a simulation (advection,
reaction-diffusion, a height field), simulate in buffer_a.frag and shade in
shader.frag. No graded glsl run in this corpus used it (0 of 9), while all five
critical effect failures recorded in the sibling opengl_python runs are simulations with
nowhere to keep their state.3dcode gl-probe compiles and shows frame 0; 3dcode gl-frames renders all five judged times and prints
mean luminance, colourfulness, edge density and the per-pair deltas. Look at the contact
sheet, then read the numbers: a largest delta just above the static threshold with a brief
that promised motion means the motion is there but invisible.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
glsl, shader-craft, fragment-shader, frame-analysis, shader-judge
npx claudepluginhub gaoypeng/3dcodeverse --plugin 3dcodeverse29 skills in this plugin
/3dcodeverseUse for ANY request to make, measure, judge or improve a 3D thing in code: a model, object or prop, a mechanism or robot with joints, a scene or environment, a shader or OpenGL effect — in Blender bpy, CadQuery, Three.js, URDF, GLSL or moderngl. This is 3D coding with the 3dcodeverse plugin: raw executable 3D code that the 3dcode instruments build, measure, render, gate and score. First step, all in ONE read: this file, skills/3d-lang-<language, hyphenated>/SKILL.md and skills/3dcodeverse/references/plan-<static|articulated|scene|graphics>.md (urdf_blender: also skills/3d-lang-blender/SKILL.md and plan-static.md, which it builds on); no c3d-* skill until a 3dcode finding or score item names its topic./3d-lang-blenderUse when writing, refining or repairing a static_object in Blender bpy (language blender): the files and builder names the lint expects, the Z-up metre frame, naming, the sandbox (allowed imports, forbidden bpy calls), the exact thresholds check-contract / check-connectivity / detail_budget measure, what the GLB exporter keeps, the Blender 5.2.2 API traps, and the 3dcode loop that ships it./3d-lang-cadqueryUse when writing, refining or repairing a static_object in CadQuery (language cadquery): the module-level `result` assembly the wrapper reads, named parts and instances, the Z-up metre frame, the lint's import and call lists, the thresholds check-contract / check-connectivity / detail_budget measure, the OCC kernel facts that fail a build, and the 3dcode loop./3d-lang-glsl-shaderUse when writing, refining or repairing a graphics-track fragment shader (language glsl_shader): the files (one include file per layer, pasted above shader.frag), the uniform block the build prepends (never redeclare it), the two entry points, the gl-frames gate thresholds (NaN, black/blown, static, flicker, low detail) with their score caps, the lint's GLSL 330 rules, the feedback buffer, the judge's named defects, and the 3dcode loop./3d-lang-opengl-pythonUse when writing, refining or repairing a graphics-track moderngl program (language opengl_python): the two entry points setup/render and their exact signatures, the sampled-time trap (render is called at t = 0, 1, 2.5, 4, 6 s, in any order), the final pass into the supplied fbo, the AST lint's import allow-list and forbidden calls, the moderngl facts that decide whether the build runs, the gl-frames gate caps, and the 3dcode loop./3d-lang-scene-blenderUse when writing, refining or repairing a scene in Blender bpy (language scene_blender): the module files and their exact functions (env height_at/build_env, zone build, asset build_<snake>), the ctx every builder receives, the Z-up frame and the Y-up plan conversion, allowed imports and the lint's forbidden table, Blender 5.2 API facts, what Cycles does with what you build, motion as keyframes/drivers, the placement and frame gate thresholds, and the 3dcode loop.Other plugins' skills for the same job