Shell and fin fur rendering
Renders short fur by drawing the mesh many times, each copy pushed out a little along the normal with a strand-density alpha texture, plus extruded fin quads along silhouettes. It is cheap, GPU friendly and easy to animate.
Also known as shell texturing, shells and fins, volumetric fur shells
In the family Materials, BRDFs & texturing, hair and fur
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | None found | |
| Babylon.js 9.38.0 | Official add-on | import { FurMaterial } from "@babylonjs/materials/fur" docs |
| Godot 4.7 | None found | |
| Unity | None found | |
| Unreal 5.7 | None found | Fur uses Groom strands, not shells. |
| Blender 5.2 | None found | Fur uses hair curves, not shells. |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
Shells: draw N offset copies of the skin mesh, shell k displaced by k/N times the fur length along the vertex normal. A texture or procedural hash holds a random strand pattern; each shell keeps only texels whose strand height exceeds k/N, so layers stack into tapered strands when viewed from above. Colour darkens toward the root for fake self-shadowing, and lighting uses a Kajiya-Kay-style tangent or a simple normal blend. Forces such as gravity, wind or animation velocity bend higher shells by an increasing offset. Shells look like stacked slices at the silhouette, so Lengyel's fins add quads extruded perpendicular to the surface along edges facing sideways, textured with a side view of the fur. Modern versions generate the shells with instancing and a hash-based strand mask in the fragment shader, avoiding a texture entirely.
When to choose it
Reach for it when
- cheap fur on animal character for games
- want short fuzzy fur without strand geometry
- fur shows visible slices at silhouette
- need wind or gravity bending fuzzy surface
- stylised furry or grassy surface using layered shells
Choose it for short fur on characters, creatures and stylised props where overdraw is acceptable and strands do not need to be individual curves. Prefer Strand-based real-time hair (TressFX style) for long hair with simulation and silhouettes. Prefer Kajiya-Kay hair shading on hair cards for long styles. For stylised grass or carpet the same shell approach works with a different mask. For path-traced fur use Disney / Chiang hair and fur BSDF.
Field marks
- Visible layering and gaps at silhouettes when viewed from low angles, unless fins or more shells are added
- Heavy overdraw and alpha-test cost when many characters are covered with fur
- Shimmering strand pattern when shells alias at distance without LOD shell reduction
- Strands penetrate or stretch where vertex normals change sharply, because offsets follow the normal
- Shadow casting is poor since shells are alpha-tested slices
Presets
Concentric volumetric fur shells — procedural tapered strands, root AO and wind sway
{
"SHELLS": 24,
"FUR_LENGTH": 0.16,
"STRAND_DENSITY": 46,
"GRAVITY_SWAY": 0.32
}Show GLSL (116 lines)
const int SHELLS = 24; // P
const float FUR_LENGTH = 0.16; // P
const float STRAND_DENSITY = 46.0; // P
const float GRAVITY_SWAY = 0.32; // P
vec2 hash22(vec2 p) {
vec3 q = fract(vec3(p.xyx) * vec3(0.1031, 0.1030, 0.0973));
q += dot(q, q.yzx + 33.33);
return fract((q.xx + q.yz) * q.zy);
}
// Cube-face octahedral projection avoids spherical UV pinching at poles
vec2 sphereFaceUV(vec3 d) {
vec3 a = abs(d);
if (a.x >= a.y && a.x >= a.z) return d.yz / a.x + vec2(d.x > 0.0 ? 2.0 : -2.0, 0.0);
if (a.y >= a.x && a.y >= a.z) return d.xz / a.y + vec2(0.0, d.y > 0.0 ? 4.0 : -4.0);
return d.xy / a.z + vec2(d.z > 0.0 ? 6.0 : -6.0, 0.0);
}
vec3 aces(vec3 x) {
x = max(x, 0.0);
return (x * (2.51 * x + 0.03)) / (x * (2.43 * x + 0.59) + 0.14);
}
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
vec3 ro = vec3(0.0, 0.08, 2.55);
vec3 rd = normalize(vec3(uv, -1.55));
float baseR = 0.68;
float furL = clamp(FUR_LENGTH, 0.01, 0.36);
float outerR = baseR + furL;
vec3 bg = mix(vec3(0.045, 0.055, 0.075), vec3(0.14, 0.16, 0.21), clamp(uv.y + 0.55, 0.0, 1.0));
float b = dot(ro, rd);
float cOut = dot(ro, ro) - outerR * outerR;
float hOut = b * b - cOut;
if (hOut < 0.0) {
fragColor = vec4(pow(clamp(aces(bg), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
return;
}
float tEnter = max(-b - sqrt(hOut), 0.0);
float tExit = -b + sqrt(hOut);
float cIn = dot(ro, ro) - baseR * baseR;
float hIn = b * b - cIn;
if (hIn > 0.0) tExit = min(tExit, -b - sqrt(hIn));
float yaw = iTime * 0.28;
if (iMouse.z > 0.5 || length(iMouse.xy) > 1.0) {
yaw = (iMouse.x / iResolution.x - 0.5) * 3.14159;
}
float cy = cos(yaw), sy = sin(yaw);
mat2 rotY = mat2(cy, -sy, sy, cy);
vec3 lightDir = normalize(vec3(0.62, 0.72, 0.55));
vec3 rimDir = normalize(vec3(-0.75, 0.35, -0.45));
int nShells = clamp(SHELLS, 4, 48);
float dens = max(STRAND_DENSITY, 8.0);
float sway = max(GRAVITY_SWAY, 0.0);
// March front-to-back through concentric fur shells
vec3 accum = vec3(0.0);
float alpha = 0.0;
for (int i = 0; i < 48; i++) {
if (i >= nShells || alpha > 0.98) break;
float f = (float(i) + 0.5) / float(nShells);
float t = mix(tEnter, tExit, f);
vec3 wp = ro + rd * t;
float r = length(wp);
float hNorm = clamp((r - baseR) / furL, 0.0, 1.0);
vec3 n = wp / max(r, 1e-4);
// Gravity droop + animated wind wave increasing quadratically from root to tip
vec3 wind = vec3(sin(iTime * 1.8 + wp.y * 3.0) * 0.35, -0.65, cos(iTime * 1.4 + wp.x * 3.0) * 0.25);
vec3 bentDir = normalize(n - wind * (hNorm * hNorm * sway * 0.55));
vec3 locDir = vec3(rotY * bentDir.xz, bentDir.y).xzy;
vec2 fuv = sphereFaceUV(locDir) * dens;
vec2 cell = floor(fuv);
vec2 frac = fract(fuv) - 0.5;
vec2 rnd = hash22(cell);
vec2 jitter = (rnd - 0.5) * 0.42;
float strandH = 0.32 + 0.68 * hash22(cell + vec2(17.3, 41.9)).x;
float taper = mix(0.46, 0.05, hNorm / max(strandH, 0.01));
float dist = length(frac - jitter);
float hitStrand = (hNorm < strandH) ? smoothstep(taper + 0.06, taper - 0.06, dist) : 0.0;
if (hitStrand > 0.01) {
// Subtle warm feline/fox coat striping + root-to-tip self-occlusion
float stripe = 0.5 + 0.5 * sin(locDir.y * 14.0 + sin(locDir.x * 7.0) * 1.2);
vec3 rootCol = vec3(0.24, 0.13, 0.07);
vec3 tipCol = mix(vec3(0.86, 0.54, 0.26), vec3(0.95, 0.84, 0.68), stripe * 0.55);
vec3 furCol = mix(rootCol, tipCol, pow(hNorm, 0.65));
float rootAO = mix(0.16, 1.0, pow(hNorm, 0.78));
float wrapDiff = clamp((dot(n, lightDir) + 0.35) / 1.35, 0.0, 1.0);
float rim = pow(1.0 - max(dot(n, -rd), 0.0), 3.0) * (0.35 + 0.65 * max(dot(n, rimDir) + 0.4, 0.0));
vec3 lit = furCol * rootAO * (vec3(0.14, 0.16, 0.22) + vec3(1.55, 1.42, 1.24) * wrapDiff) + vec3(0.75, 0.82, 0.95) * rim * rootAO * 0.65;
float aLayer = hitStrand * (1.0 - alpha);
accum += lit * aLayer;
alpha += aLayer;
}
}
// Inner skin core if ray reaches baseR
if (hIn > 0.0 && alpha < 0.99) {
vec3 wp = ro + rd * tExit;
vec3 n = normalize(wp);
float nl = max(dot(n, lightDir), 0.0);
vec3 skin = vec3(0.18, 0.10, 0.06) * (0.15 + 0.7 * nl);
accum += skin * (1.0 - alpha);
alpha = 1.0;
}
vec3 col = mix(bg, accum, alpha);
fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}Attribution: MIT — written for this index
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| shell-fur-rendering-live | Tesla T4 1920x1080 | 36.7× baseline (heavy) · 1.21 ms / 1.24 ms | opengl-timer-query · 40 frames · GPU Weight Atlas · Colab T4 sweep |
| shell-fur-rendering-live | NVIDIA L4 1920x1080 | 29.4× baseline (heavy) · 0.468 ms / 0.472 ms · 2.6× faster on L4 | opengl-timer-query · Cross-architecture validation |
| shell-fur-rendering-live | NVIDIA A100-SXM4-40GB 1920x1080 | 23.7× baseline (heavy) · 0.682 ms / 0.686 ms · 1.8× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
From the citation graph (Crossref reference lists): its primary source cites Kajiya-Kay hair shading.
Crosses
- Kajiya-Kay hair shading: Each shell can use the fibre tangent lobes to get a directional highlight along the strand.
Sources
- primaryJerome Lengyel, Emil Praun, Adam Finkelstein, Hugues Hoppe (2001). Real-time fur over arbitrary surfaces. Proceedings of the 2001 symposium on Interactive 3D graphics.Verified via crossref · 2026-11-29doi:10.1145/364338.364407
- implementationGökay Aydoğan (2026). gokayfem/glsl-studies. 454 procedural graphics studies in GLSL ES 3.00 for WebGL2, from woven cloth and animal fur to glacial terrain and atmospheric optics. Each study includes shader source and a rendered preview.GitHub API · license MIT · 2026-11-30