Oren-Nayar rough diffuse
A diffuse model for rough matte surfaces such as clay, plaster or moon dust. It models V-groove microfacets and produces the flat, retro-reflective look Lambert cannot, where brightness barely falls toward the terminator.
In the family Materials, BRDFs & texturing, diffuse model
Where it runs
Built inOfficial add-onPluginNone foundNot researched
| Engine | Support | How |
|---|---|---|
| three.js r187 | Built in | material.diffuseRoughness = 0.5 (MeshPhysicalMaterial) docs Energy-conserving Oren-Nayar (EON). |
| Babylon.js 9.38.0 | Built in | pbrMaterial.brdf.baseDiffuseModel = BABYLON.Constants.MATERIAL_DIFFUSE_MODEL_E_OREN_NAYAR docs Also Burley and Lambert diffuse models. |
| Godot 4.7 | None found | |
| Unity | None found | |
| Unreal 5.7 | None found | |
| Blender 5.2 | Built in | Diffuse BSDF > Roughness > 0 docs Cycles only. |
| WebGPU W3C | None found | |
| Metal | None found |
How it works
Oren and Nayar replace each Lambertian microfacet assumption with a Gaussian distribution of V-grooves of slope sigma, each facet itself Lambertian. Shadowing, masking and inter-reflection between groove walls add brightness when viewer and light are on the same side, so a full moon looks uniformly bright instead of darkening at the limb. The full model includes an interreflection term; the widely used qualitative form is L = (rho/pi) cos(theta_i) (A + B max(0, cos(phi_i - phi_r)) sin(alpha) tan(beta)) with A = 1 - 0.5 sigma^2/(sigma^2 + 0.33), B = 0.45 sigma^2/(sigma^2 + 0.09), alpha = max(theta_i, theta_r), beta = min(...). At sigma = 0 it reduces to Lambert.
When to choose it
Reach for it when
- rough matte surfaces like clay look too flat
- moon or fabric looks wrong with simple diffuse
- dusty surfaces should brighten at grazing angles
- lambert diffuse looks too dark on rough materials
Choose it for rough diffuse surfaces, skin-adjacent matte looks, planets and unglazed ceramics when Lambert looks too flat and dark at the terminator. Prefer Disney principled BRDF diffuse (roughness dependent retro-reflection) if you already use that model, and Lambert plus Kulla-Conty multiple-scattering compensation when budget is tight. Prefer Separable subsurface scattering for translucent skin.
Field marks
- Qualitative approximation drifts from the full model at grazing view angles
- Often combined naively with GGX specular without an energy split, double counting reflectance
- Image-based diffuse lighting cannot use the simple irradiance map; the view dependence is lost
- Gaussian V-groove assumption does not match measured rough dielectrics exactly
Presets
Lambert (left) vs Oren-Nayar (right) rough diffuse spheres
{
"SIGMA": 0.9
}Show GLSL (31 lines)
// Rough diffuse surfaces: Lambert (left) vs Oren-Nayar (right), identical albedo, light and view.
// Oren-Nayar adds retro-reflection so the rough sphere looks flatter and brighter toward the terminator.
const float SIGMA = 0.9;
const vec3 ALBEDO = vec3(0.8, 0.72, 0.62);
void mainImage(out vec4 fragColor, in vec2 fragCoord) {
vec2 uv = (fragCoord - 0.5 * iResolution.xy) / iResolution.y;
vec3 ro = vec3(0.0, 0.0, 4.0), rd = normalize(vec3(uv, -2.2));
vec3 l = normalize(vec3(0.7, 0.25, 0.65));
vec3 col = vec3(0.04) + 0.03 * uv.y;
for (int i = 0; i < 2; i++) {
vec3 c = vec3(i == 0 ? -0.5 : 0.5, 0.0, 0.0);
vec3 oc = ro - c; float b = dot(oc, rd); float h = b * b - dot(oc, oc) + 0.46 * 0.46;
if (h < 0.0) continue;
float t = -b - sqrt(h); vec3 n = normalize(ro + rd * t - c); vec3 v = -rd;
float nl = max(dot(n, l), 0.0), nv = max(dot(n, v), 1e-3);
float f = nl;
if (i == 1) {
float s2 = SIGMA * SIGMA;
float A = 1.0 - 0.5 * s2 / (s2 + 0.33), B = 0.45 * s2 / (s2 + 0.09);
float ti = acos(clamp(nl, 0.0, 1.0)), tr = acos(clamp(nv, 0.0, 1.0));
float al = max(ti, tr), be = min(ti, tr);
vec3 lp = l - n * dot(n, l), vp = v - n * dot(n, v);
float cp = max(dot(normalize(lp + 1e-5), normalize(vp + 1e-5)), 0.0);
f = nl * (A + B * cp * sin(al) * tan(be));
}
col = ALBEDO * f * 1.4 + ALBEDO * 0.03;
}
fragColor = vec4(pow(col, vec3(1.0 / 2.2)), 1.0);
}
Attribution: written for this index
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| oren-nayar-specimen | Tesla T4 1920x1080 | 1.18× baseline (feather) · 0.039 ms / 0.041 ms | opengl-timer-query · 40 frames · GPU Weight Atlas · Colab T4 sweep |
| oren-nayar-specimen | NVIDIA L4 1920x1080 | 1.01× baseline (feather) · 0.016 ms / 0.016 ms · 2.4× faster on L4 | opengl-timer-query · Cross-architecture validation |
| oren-nayar-specimen | NVIDIA A100-SXM4-40GB 1920x1080 | 1.00× baseline (feather) · 0.029 ms / 0.029 ms · 1.4× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
From the citation graph (Crossref reference lists): cited by LEADR mapping.
Sources
- primaryMichael Oren, Shree K. Nayar (1994). Generalization of Lambert's reflectance model. Proceedings of the 21st annual conference on Computer graphics and interactive techniques - SIGGRAPH '94.Verified via crossref · 2026-11-29doi:10.1145/192161.192213