---
id: "oren-nayar"
title: "Oren-Nayar rough diffuse"
domain: "materials"
stage: "material"
realtime: "realtime"
platforms: [webgl2, webgpu, desktop-gpu, mobile-gpu, unity, unreal, godot, blender]
year_introduced: 1994
inputs: [material-params, normals]
outputs: [radiance]
style: "photoreal"
dynamic: "both"
cost: "cheap"
authority: "Oren & Nayar, 1994"
url: "https://texelatlas.vercel.app/t/oren-nayar/"
sources_verified_at: "2026-11-29"
---
# Oren-Nayar rough diffuse (Oren & Nayar, 1994)

> 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.

## 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

## 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 use it

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](https://texelatlas.vercel.app/t/disney-principled-brdf.md) diffuse (roughness dependent retro-reflection) if you already use that model, and Lambert plus [Kulla-Conty multiple-scattering compensation](https://texelatlas.vercel.app/t/kulla-conty-multiscatter.md) when budget is tight. Prefer [Separable subsurface scattering](https://texelatlas.vercel.app/t/separable-sss.md) for translucent skin.

## Cost

cheap — A handful of trigonometric or dot-product operations per light; precomputed variants exist.
Measured GPU Weight: 1.18× baseline (feather) — 0.0389 ms median / 0.0411 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 1.01× baseline (feather) — 0.016 ms median (2.43× faster on L4).
Ampere A100 scaling: 1× baseline (feather) — 0.0288 ms median (1.35× faster on A100).

## Failure modes

- 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

## Engine support

- babylonjs: builtin — `pbrMaterial.brdf.baseDiffuseModel = BABYLON.Constants.MATERIAL_DIFFUSE_MODEL_E_OREN_NAYAR` (evidence: https://github.com/BabylonJS/Babylon.js/blob/9.38.0/packages/dev/core/src/Materials/PBR/pbrBRDFConfiguration.ts, checked 2026-12-01) — Also Burley and Lambert diffuse models.
- blender: builtin — `Diffuse BSDF > Roughness > 0` (evidence: https://docs.blender.org/manual/en/5.2/render/shader_nodes/shader/diffuse.html, checked 2026-12-01) — Cycles only.
- threejs: builtin — `material.diffuseRoughness = 0.5 (MeshPhysicalMaterial)` (evidence: https://github.com/mrdoob/three.js/blob/r187/src/materials/MeshPhysicalMaterial.js, checked 2026-12-01) — Energy-conserving Oren-Nayar (EON).

## Dataflow

- Inputs: material-params, normals
- Outputs: radiance
- Platforms: webgl2, webgpu, desktop-gpu, mobile-gpu, unity, unreal, godot, blender

## Presets

### Lambert (left) vs Oren-Nayar (right) rough diffuse spheres (glsl-fragment; rendered 2026-11-29)

```json
{
  "SIGMA": 0.9
}
```

```glsl
// 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

## Sources

1. [primary] Michael 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. https://doi.org/10.1145/192161.192213 (verified via crossref on 2026-11-29)

## Cite this entry

Texel. "Oren-Nayar rough diffuse." https://texelatlas.vercel.app/t/oren-nayar/ (accessed 2026-12-01).
