Disney / Chiang hair and fur BSDF
An artist-controllable hair BSDF built on the R, TT and TRT lobes but parameterised by melanin, roughness and tint, with a far-field azimuthal approximation that is cheap to evaluate and sample in a path tracer.
Also known as Chiang hair BSDF, Hair and fur model for production path tracing
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 | None found | |
| Godot 4.7 | None found | |
| Unity | None found | |
| Unreal 5.7 | Built in | Material > Shading Model = Hair paired with Groom Hair Strands (implements Chiang/Marschner multi-lobe strand scattering) docs |
| Blender 5.2 | Built in | Shader node: Principled Hair BSDF > Model = Chiang docs Cycles only. |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
The model keeps the Marschner decomposition into longitudinal and azimuthal terms but redesigns both for production. Longitudinal roughness uses a numerically stable approximation of a Gaussian-like distribution on the sphere, with separate widths per lobe. The azimuthal term is replaced by a closed-form function of the exit angle derived from the geometry of a circular cross-section, avoiding root finding and allowing importance sampling. Colour comes from an absorption coefficient computed from melanin (eumelanin/pheomelanin ratio) and a tint, so artists choose a hair colour like they would for a person rather than tuning RGB absorption. Higher-order internal bounces beyond TRT are folded into one residual lobe to conserve energy. The result is a physically plausible BSDF with a handful of sliders that works inside a path tracer, and is the basis of hair shaders in several renderers.
When to choose it
Reach for it when
- artist friendly hair colour from melanin sliders
- path traced hair that samples efficiently
- fur and hair shader for production renderer
- need hair roughness and tint without tuning absorption
- blond hair looks too dark in path tracer
Choose it for path-traced or look-dev hair and fur where the artists must dial in colour and roughness without understanding scattering. Prefer Marschner hair scattering model when you need the original formulation or are validating against it. Prefer Kajiya-Kay hair shading for real-time hair cards. Combine with Unidirectional Path Tracing plus a dual-scattering or brute-force path depth for blond hair where multiple scattering dominates.
Field marks
- Light hair needs many bounces between fibres, so low path depth makes it dark and flat
- Radial roughness and longitudinal roughness are coupled in the parameterisation, so some looks are hard to reach
- Far-field assumption breaks for very thick fibres or extreme close-ups
- Fur on animals requires the medulla term that this base model omits, so it can look too translucent or too dark
- Tangent direction errors flip the highlights in the same way as for any strand shader
Presets
Disney / Chiang hair BSDF — Marschner R, TT & TRT melanin-absorbed dual-lobe fibers
{
"P_MELANIN": 0.42,
"P_ROUGHNESS": 0.26,
"P_CUTICLE_TILT": 0.08,
"P_GLINT_BOOST": 1.3
}Show GLSL (141 lines)
const float P_MELANIN = 0.42; // P Melanin [0.05, 1.2, 0.02]
const float P_ROUGHNESS = 0.26; // P Longitudinal Rough [0.08, 0.75, 0.02]
const float P_CUTICLE_TILT = 0.08; // P Cuticle Tilt [0.0, 0.22, 0.01]
const float P_GLINT_BOOST = 1.3; // P TRT Glint [0.0, 2.5, 0.05]
float hash11(float p) {
p = fract(p * 0.1031);
p *= p + 33.33;
p *= p + p;
return fract(p);
}
// Gaussian longitudinal scattering lobe M_p
float lobeM(float thetaH, float shift, float beta) {
float d = thetaH - shift;
return exp(-0.5 * d * d / (beta * beta + 1e-4)) / (2.5066 * beta + 1e-4);
}
// Fresnel reflectance for hair keratin (IOR ~ 1.55)
float fresnelHair(float cosI) {
float f0 = 0.0465;
return f0 + (1.0 - f0) * pow(clamp(1.0 - cosI, 0.0, 1.0), 5.0);
}
// Chiang melanin absorption coefficient sigma_a -> transmittance T
vec3 hairAbsorption(float melanin, float redness) {
vec3 eu = vec3(0.419, 0.697, 1.37);
vec3 pheo = vec3(0.187, 0.40, 1.05);
float c = melanin * melanin * 3.8;
return c * mix(eu, pheo, redness);
}
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;
// Ray-intersect a sculpted 3D hair swatch cylinder + gentle S-wave drape
vec3 ro = vec3(0.0, 0.0, 2.55);
vec3 rd = normalize(vec3(uv, -1.65));
// Studio dark velvet backdrop
vec3 col = mix(vec3(0.035, 0.03, 0.04), vec3(0.09, 0.08, 0.10), clamp(uv.y + 0.5, 0.0, 1.0));
col += vec3(0.18, 0.14, 0.11) * exp(-length(uv - vec2(0.32, 0.35)) * 2.5);
// Intersect slightly tapered hair bundle sphere/ellipsoid
vec3 sc = vec3(0.86, 1.08, 0.86);
vec3 roS = ro / sc;
vec3 rdS = rd / sc;
float a = dot(rdS, rdS);
float b = dot(roS, rdS);
float c = dot(roS, roS) - 1.0;
float disc = b * b - a * c;
if (disc > 0.0) {
float t = (-b - sqrt(disc)) / a;
vec3 p = ro + rd * t;
vec3 nBase = normalize(p / (sc * sc));
vec3 v = -rd;
// Strand coordinates along curved draped locks
float wave = 0.14 * sin(p.y * 4.2 + iTime * 0.8 + p.x * 1.6);
float phi = atan(p.x, p.z) + wave;
float strandCoord = phi * 58.0;
float strandId = floor(strandCoord);
float strandFrac = fract(strandCoord) - 0.5;
float hRand = hash11(strandId * 13.7);
float hRand2 = hash11(strandId * 29.3 + 5.1);
// Individual cylindrical fiber micro-normal and tangent T along vertical wave
float waveDeriv = 0.14 * 4.2 * cos(p.y * 4.2 + iTime * 0.8 + p.x * 1.6);
vec3 bitan = normalize(cross(vec3(0.0, 1.0, 0.0), nBase));
vec3 T = normalize(cross(nBase, bitan) + bitan * waveDeriv * 0.45);
vec3 N = normalize(nBase + bitan * (strandFrac * 1.15));
// Animated key light + warm rim backlight to showcase R, TT, TRT
float lAng = 0.65 * sin(iTime * 0.55) + 0.45;
vec3 lKey = normalize(vec3(sin(lAng), 0.55, cos(lAng)));
vec3 lRim = normalize(vec3(-0.75, 0.45, -0.62));
float mel = clamp(P_MELANIN + (hRand - 0.5) * 0.14, 0.04, 1.5);
float betaR = clamp(P_ROUGHNESS, 0.07, 0.8);
float alpha = clamp(P_CUTICLE_TILT, 0.0, 0.25);
vec3 sigmaA = hairAbsorption(mel, 0.42 + 0.25 * hRand2);
vec3 trans = exp(-sigmaA * (1.35 + 0.4 * hRand));
vec3 accum = vec3(0.0);
for (int li = 0; li < 2; li++) {
vec3 L = (li == 0) ? lKey : lRim;
vec3 lCol = (li == 0) ? vec3(2.3, 2.15, 1.95) : vec3(2.8, 1.75, 1.15);
float sinTi = clamp(dot(T, L), -0.99, 0.99);
float sinTo = clamp(dot(T, v), -0.99, 0.99);
float ti = asin(sinTi);
float to = asin(sinTo);
float thetaH = 0.5 * (ti + to);
float thetaD = 0.5 * (to - ti);
float cosTd = max(cos(thetaD), 0.05);
// Azimuthal angle difference in normal plane perpendicular to T
vec3 lp = normalize(L - T * sinTi + 1e-5);
vec3 vp = normalize(v - T * sinTo + 1e-5);
float cosPhi = clamp(dot(lp, vp), -1.0, 1.0);
float cosHalfPhi = sqrt(max(0.5 + 0.5 * cosPhi, 0.0));
float F = fresnelHair(cosTd * cosHalfPhi);
// R lobe: cuticle primary specular (uncolored, shifted by +alpha)
float MR = lobeM(thetaH, -alpha, betaR);
float NR = 0.25 * cosHalfPhi;
vec3 R = vec3(F * MR * NR) * 0.9;
// TT lobe: forward transmission through fiber (strong backlit glow, shifted -alpha/2)
float MTT = lobeM(thetaH, 0.5 * alpha, betaR * 0.55);
float NTT = exp(-3.2 * (1.0 + cosPhi));
vec3 TT = (1.0 - F) * (1.0 - F) * trans * MTT * NTT * 2.2;
// TRT lobe: secondary internal reflection with caustic glint (shifted +1.5*alpha)
float MTRT = lobeM(thetaH, 1.5 * alpha, betaR * 1.85);
float glint = exp(-18.0 * pow(abs(cosPhi - 0.55), 2.0)) * max(P_GLINT_BOOST, 0.0);
vec3 TRT = (1.0 - F) * (1.0 - F) * F * trans * trans * MTRT * (0.65 + 1.8 * glint) * 2.4;
// Multiple-scattering residual diffuse wrap for natural body volume
float wrap = max(dot(N, L) * 0.65 + 0.35, 0.0);
vec3 ms = trans * trans * wrap * 0.22;
float selfOcc = smoothstep(-0.35, 0.65, dot(nBase, L));
float shadowTerm = (li == 0) ? (0.25 + 0.75 * selfOcc) : (0.35 + 0.65 * pow(1.0 - max(dot(nBase, v), 0.0), 1.6));
accum += lCol * (R + TT + TRT + ms) * shadowTerm;
}
// Fine per-fiber groove micro-occlusion
float fiberShade = 0.72 + 0.28 * cos(strandFrac * 6.28318);
float microStrand = 0.85 + 0.15 * sin(phi * 180.0 + p.y * 6.0);
col = accum * fiberShade * microStrand;
}
fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}Attribution: Original interactive WebGL2 fragment shader written for Texel Atlas (MIT).
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| disney-hair-bsdf-live | Tesla T4 1920x1080 | 7.04× baseline (moderate) · 0.232 ms / 0.253 ms | opengl-timer-query · 40 frames · GPU Weight Atlas · Colab T4 sweep |
| disney-hair-bsdf-live | NVIDIA L4 1920x1080 | 5.39× baseline (light) · 0.086 ms / 0.088 ms · 2.7× faster on L4 | opengl-timer-query · Cross-architecture validation |
| disney-hair-bsdf-live | NVIDIA A100-SXM4-40GB 1920x1080 | 4.45× baseline (light) · 0.128 ms / 0.129 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, Deep shadow maps, Joint Non-Local Means (JNLM) Path-Tracing Denoiser.
Crosses
- Unidirectional Path Tracing: Closed-form sampling of the lobes lets each hair hit be importance sampled inside a standard path tracer.
Sources
- primaryMatt Jen‐Yuan Chiang, Benedikt Bitterli, Chuck Tappan, Brent Burley (2016). A Practical and Controllable Hair and Fur Model for Production Path Tracing. Computer Graphics Forum.Verified via crossref · 2026-11-29doi:10.1111/cgf.12830