/ghibli-threejs:threejs-stylized-rock-materialfrom ghibli-threejs
Creates painterly river-worn Ghibli-style rocks for three.js with Blender SDF/soft-min faceted stones, vertex-painted moss, and a web shader adding granite grain, derivative bump, live waterline wetness, rain, and per-instance variation.
Ships in ghibli-threejs. 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.
Rocks in a Ghibli background are blocked in with soft, broad facets: pale warm tops, cool blue-grey flanks, dark crevices, pale worn edges, a little lichen, soft moss caps. At the river they are darker and glistening up to a wet line that moves with the water. This skill splits the job: shape and broad paint in Blender (baked to vertex colour), fine grain, bump, wetness and variation in the web shader.
Stack: headless Blender (5.x) + glTF export; three.js WebGLRenderer (r186), MeshStandardMaterial with vertexColors patched through onBeforeCompile (the patch() helper in threejs-ghibli-toon-shading with color / normal / onShader hooks). Rocks are InstancedMeshes (~800 instances, ~2.4k triangles each).
Refine
{{rock GLBs}}into river-worn granite that matches{{reference}}: pale warm tops, cool blue-grey flanks, soft facets with rounded edges, dark crevices and pale worn edges, lichen, soft moss caps (no hard triangle edge). In the web shader add fine mineral grain, a bump, a wet band that follows the live waterline and tide, and rain wetness. Keep placements, instancing and shadows unchanged; ~2.4k triangles each.
references/rock-sdf.py)Two constructions that worked:
smin(r, off/dot(d, n), .055), offsets .72–.86) → optional fissure groove → decimate to 2.4k. The soft-min is what gives the painted "blocked-in facet" look; plain noise gives soap bars.COLOR_0, moss in its alpha(.36,.31,.235) / (.135,.16,.195)), dark crevices from curvature (vertex minus neighbour mean, along the normal, over mean edge length, smoothed twice) or from SDF occlusion, pale worn edges from positive curvature, bedding bands, a darker foot, sparse lichen.alpha = 1 − moss, blended per vertex; the web shader reads it via USE_COLOR_ALPHA / vColor.a. As a separate material it leaves a zig-zag triangle border.export_vertex_color='ACTIVE' — the default ('MATERIAL') drops the alpha and COLOR_0 comes out VEC3. Check the accessor type in the GLB JSON.references/rock-shader.js)instanceMatrix[3].xyz as a varying in the vertex hook.vLocal*3 + seed*.61. Dark mica specks at 72 cycles (×.76) and pale feldspar at 125 (×1.16) read as granite; 17–46 cycles read as dalmatian spots (the GLB is instanced at up to 2.2×, so vLocal noise grows with it). Faint veins; tufted moss (never flat paint). Fade grain and bump by length(vViewPosition) — gone by ~22 m (they alias beyond).bumpMap (perturbNormalArb on your own height):
normal = normalize(|det|·normal − s·sign(det)(dFdx(h)·cross(dpy,N) + dFdy(h)·cross(N,dpx))), dpx/dpy = dFdx/dFdy(−vViewPosition), s = metres of relief (~0.012).waveDisp(xz, t).y) in the fragment shader; wet = smoothstep(wl + band, wl + .008, y) with a noisy band ≈ 7 cm (scaled by wave amplitude); max(wet, rain*.85). Wet colour pow(c, 1.3)·.78, roughness → .32, plus a faint pale tide mark just above the band. Moss wets less and stays matte (roughness → 1).uRain*.85) → max(uRain*.85, cliffWet(vWPos)))).matrix = T · R_y · Shear(y += k·x) with k = (h1 − h0)/len, matrixAutoUpdate = false, so rails follow the ground and posts stay plumb (references/seat-raked.js). A 4 m run on a village slope rose 0.9 m — tilted, one end floated and the other was buried.
gltf-transform draco --quantize-color 12). Use Draco, not meshopt: meshopt's quantisation moves position into a normalised range under a node transform, and the grain reads object-space vLocal.detail = 1 moss reads as flat leaves; use 2. Clamp moss domes at Z ≥ 0 or grounding lifts the model.primitive_ico_sphere_add(subdivisions=1) is a bare 20-face icosahedron.me.materials.clear() after setting per-face material indices resets every face to slot 0 — add slots first.VEC4.threejs-blender-glb-pipeline, threejs-ghibli-toon-shading, threejs-webgl-realistic-water, threejs-boat-buoyancy-steering (shared wave function), threejs-webgl-rain-effect, threejs-webgl-waterfall-effect.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub nicksonthc/ghibli-threejs --plugin ghibli-threejs31 skills in this plugin
/threejs-blender-glb-pipelineBuilds a reference-image-driven asset pipeline from headless Blender to GLB for a three.js scene — an asset contract (units, axes, grounding, required mesh/material names, budgets, attachment numbers), one parallel subagent per asset group writing craft_<slug>.py generators, preview renders compared against the reference, measured-bounding-box placement in the web scene, Draco compression, and a scored asset quality pass. Use when the user has a reference picture and wants a 3D scene from it, asks to model props/trees/characters in Blender for three.js, export GLBs, fix glTF export issues (vertex-colour alpha, UV flip, axes, custom normals), compress models, or rate and improve every asset in a scene./threejs-boat-buoyancy-steeringFloats a boat (or any buoyant prop) on three.js water with Gerstner waves generated from one JS table that feeds both the GLSL vertex shader and a CPU waveHeight(), four-probe heave/pitch/roll damped springs, an arc-length drift lane that bends round rocks, click-to-steer W/A/S/D rowing with momentum and drag, an autopilot that pursues the lane back, and a chase camera that keeps the orbit. Use when the user wants a drifting or steerable boat, buoyancy, objects bobbing on waves, Gerstner waves on a river/lake, a boat autopilot, or a follow/chase camera behind a vehicle on water./threejs-camera-guided-tourBuilds a hands-free guided camera tour for a three.js scene — keyframes as data, a time-parametrised Catmull-Rom (Hermite) path with continuous velocity, one camera-owner flag, the tour driving time of day and a day→night blend, staged creatures crossing the frame, handwritten captions, portrait-phone lens widening, instant hand-back on drag/scroll/tap/Esc, and a seek() hook for screenshots and video capture. Use when adding a tour mode, cinematic flythrough, attract mode, camera path animation, keyframed camera, spline camera or showcase video capture to a WebGL scene./threejs-cinematic-loading-screenBuilds a cinematic loading gate for a three.js scene — a painted CSS dawn (layered gradients, drifting blurred mist bands, optional conic god rays, SVG feTurbulence grain, vignette), a 2D-canvas layer of falling petals and glowing motes, a handwritten title that animates in, a gold progress line with stage captions, then "tap anywhere to enter" whose tap is the browser gesture that unlocks audio; uses a still captured from the live scene as the backdrop that cross-fades into the real render, and warms up shaders before lifting so the first interaction never stalls. Use when adding a loading screen, splash screen, intro curtain, preloader, tap-to-start / audio unlock gate or shader pre-compilation to a WebGL scene./threejs-day-cycle-lightingAnimates the sun in a three.js scene from sunrise to sunset through a single applySun(az, el) writer — azimuth sweep, elevation arc, warm-to-gold light colour, horizon falloff, warming sky dome and fog, re-aimed god rays and every sun-driven shader uniform — plus a cinematic "sun follows the lens" mode that keeps the sun beside the camera heading for backlit shots with boosted god rays and forward scattering. Use when adding a day/night cycle, time-of-day slider, sunrise/sunset, moving sun, backlit tour shots, or when several systems fight over the sun direction in WebGL/R3F./threejs-dreamy-glass-hudTurns a three.js scene's DOM overlay into one coherent, dreamlike HUD — a single frosted-glass material shared by every pill, badge and popover whose colours are registered CSS properties so the whole HUD cross-fades from pearl to deep indigo as the scene turns to night; an inline-SVG icon dock whose lit toggles glow gold instead of shouting; a glass popover in place of a native select; first-visit hints "whispered" in handwriting that step aside the moment the visitor understands; a HUD that drifts away after half a minute of stillness; a mote of light under each tap; a staggered arrival after the loading gate; and letterbox bars during a camera tour. Use when the overlay UI looks like a dev panel on top of a beautiful scene, when asked for a dreamy, cinematic, premium or 梦幻 / 绝美 UI, glassmorphism, a day/night-aware HUD, onboarding hints, auto-hiding UI, tap feedback, or to restyle lil-gui to match.