---
id: "nvidia-nrd-relax-reblur"
title: "NVIDIA Real-time Denoisers (ReBLUR, ReLAX)"
aliases: [NRD, ReBLUR, ReLAX, SIGMA]
domain: "post"
stage: "post"
realtime: "realtime"
platforms: [desktop-gpu, unreal, unity]
year_introduced: 2021
inputs: [radiance, gbuffer, normals, depth]
outputs: [radiance]
style: "photoreal"
dynamic: "dynamic"
cost: "medium"
authority: "NVIDIA-RTX, 2020"
url: "https://texelatlas.vercel.app/t/nvidia-nrd-relax-reblur/"
sources_verified_at: "2026-11-29"
---
# NVIDIA Real-time Denoisers (ReBLUR, ReLAX) (NVIDIA-RTX, 2020)

> A spatio-temporal denoising library with separate denoisers for diffuse, specular and shadow signals from sparse ray tracing, built for engine integration across D3D12, Vulkan and D3D11.

## Reach for it when

- ray traced reflections and diffuse look grainy in my game
- need a production denoiser for sparse ray tracing signals
- glossy ray traced reflections smear after denoising
- want one library to denoise shadows diffuse and specular
- restir output still has speckle noise on screen

## How it works

NRD is not one filter but a set of denoisers sharing a common input contract: noisy hit signals with hit distance, view-space depth or linear Z, world or view normals with roughness, and motion vectors. **ReBLUR** is a recurrent, hit-distance-aware blur: it accumulates history with reprojection, estimates how much history there is per pixel, and sizes a blur kernel from accumulation count, roughness and the distance the ray travelled, so contact reflections stay sharp while distant ones soften. **ReLAX** is closer to SVGF: it was designed for ReSTIR-style signals, keeps luminance variance, clamps history against a local neighbourhood and runs an à-trous cascade, and it expects diffuse and specular radiance pre-divided by albedo or Fresnel. **SIGMA** denoises soft shadows from penumbra-distance inputs. Engines pass in packed inputs, call the dispatch list NRD emits, and remodulate the result.

## When to use it

Choose it for shipping real-time ray-traced games or renderers that need reliable diffuse, specular and shadow denoising with documented input packing and temporal stability. Prefer [Spatiotemporal Variance-Guided Filtering (SVGF)](https://texelatlas.vercel.app/t/svgf.md) when you want a compact algorithm you can read and port to WebGPU, [Intel Open Image Denoise (OIDN)](https://texelatlas.vercel.app/t/open-image-denoise.md) for final-frame offline output, and learned reconstruction such as [NVIDIA DLSS](https://texelatlas.vercel.app/t/dlss.md) when ray reconstruction is available on the target hardware.

## Cost

medium — Runs as a multi-pass compute chain per signal; budget depends on how many signals (diffuse, specular, shadows) and the resolution. No benchmark figures are stated here.
Measured GPU Weight: 51.13× baseline (heavy) — 1.6823 ms median / 1.8128 ms p95 on Tesla T4/PCIe/SSE2 @ 1920x1080 (opengl-timer-query).
Ada L4 scaling: 45.08× baseline (heavy) — 0.7168 ms median (2.35× faster on L4).
Ampere A100 scaling: 34.13× baseline (heavy) — 0.9828 ms median (1.71× faster on A100).

## Failure modes

- Wrong input packing (hit distance, roughness, normals encoding, pre-division by albedo) is the most common cause of smearing or dark results
- Lag and ghosting in indirect lighting on fast changes, and disocclusion trails behind moving objects
- Over-blurring of glossy reflections when hit distance is missing or inaccurate
- Residual low-frequency flicker when upstream sampling changes noise distribution frame to frame
- Sample-based integration requires a proprietary-licensed binary/headers; check redistribution terms

## Dataflow

- Inputs: radiance, gbuffer, normals, depth
- Outputs: radiance
- Platforms: desktop-gpu, unreal, unity

## Presets

### NVIDIA NRD (ReBLUR / ReLAX) — 1-spp noisy ray-traced specular & shadow (left) vs hit-distance-aware denoised output (right) (glsl-fragment; rendered 2026-11-30)

```json
{
  "P_ROUGHNESS": 0.34,
  "P_HIT_DIST_AWARE": 1,
  "P_NOISE_AMP": 0.8,
  "P_SPLIT": 0.48
}
```

```glsl
const float P_ROUGHNESS = 0.34; // P Floor Roughness [0.08, 0.78, 0.02]
const float P_HIT_DIST_AWARE = 1.00; // P Hit-Dist Scaling [0.0, 1.0, 0.05]
const float P_NOISE_AMP = 0.80; // P Ray Noise [0.2, 1.4, 0.05]
const float P_SPLIT = 0.48; // P 1-spp / NRD ReBLUR [0.0, 1.0, 0.02]

float hash21(vec2 p) {
  p = fract(p * vec2(127.1, 311.7));
  p += dot(p, p + 34.5);
  return fract(p.x * p.y);
}

// Scene with glossy floor reflecting emissive neon pillars at varying hit distances (near contact vs far reflection!)
void evalNRDScene(vec2 uv, float rough, float t, out vec3 clean, out float hitDist, out vec3 nrm, out float linZ) {
  vec3 ro = vec3(0.35 * sin(t * 0.45), 0.42, 2.25);
  vec3 rd = normalize(vec3(uv.x, uv.y - 0.10, -1.45));
  vec3 bg = mix(vec3(0.03, 0.04, 0.07), vec3(0.08, 0.12, 0.20), smoothstep(-0.1, 0.6, rd.y));

  clean = bg;
  hitDist = 6.0;
  nrm = vec3(0.0, 0.0, 1.0);
  linZ = 12.0;

  // Emissive cyan & amber pillars
  vec3 p1c = vec3(-0.55, 0.15, -0.35);
  vec3 p2c = vec3(0.58, 0.18, -0.85);
  vec3 p3c = vec3(0.05, -0.05, 0.28);

  // Glossy ground plane y = -0.42
  if (rd.y < -0.005) {
    float tf = (-0.42 - ro.y) / rd.y;
    if (tf > 0.05 && tf < 14.0) {
      linZ = tf;
      vec3 hp = ro + rd * tf;
      nrm = vec3(0.0, 1.0, 0.0);
      vec3 r = reflect(rd, nrm);

      // Compute reflection hit distance to nearest pillar/sphere
      float d1 = length(hp.xz - p1c.xz);
      float d2 = length(hp.xz - p2c.xz);
      float d3 = length(hp.xz - p3c.xz);
      hitDist = min(d1, min(d2, d3));

      // Reflection lobe widens physically with hitDist * roughness (core ReBLUR principle!)
      float lobe = rough * (0.18 + 0.65 * hitDist);
      vec3 refl = bg;
      vec3 to1 = normalize(vec3(p1c.x, 0.25, p1c.z) - hp);
      vec3 to2 = normalize(vec3(p2c.x, 0.25, p2c.z) - hp);
      vec3 to3 = normalize(vec3(p3c.x, -0.05, p3c.z) - hp);
      refl += vec3(0.18, 0.92, 1.0) * exp(-pow(1.0 - max(dot(r, to1), 0.0), 1.0) / max(0.008 + lobe * lobe * 0.25, 0.005)) * 1.7 / (0.4 + d1 * 0.6);
      refl += vec3(1.0, 0.48, 0.18) * exp(-pow(1.0 - max(dot(r, to2), 0.0), 1.0) / max(0.008 + lobe * lobe * 0.25, 0.005)) * 1.9 / (0.4 + d2 * 0.6);
      refl += vec3(0.95, 0.85, 0.55) * exp(-pow(1.0 - max(dot(r, to3), 0.0), 1.0) / max(0.006 + lobe * lobe * 0.20, 0.004)) * 1.3 / (0.3 + d3 * 0.7);

      // Contact shadow directly under foreground sphere p3c
      float contactSh = smoothstep(0.16, 0.44, d3);
      float fres = 0.08 + 0.88 * pow(1.0 - max(dot(nrm, -rd), 0.0), 4.0);
      vec3 floorBase = vec3(0.12, 0.13, 0.16) * (0.35 + 0.65 * contactSh);
      clean = mix(floorBase, refl * (0.45 + 0.55 * contactSh), fres);
    }
  }

  // Intersect foreground sphere (p3c, R=0.35)
  vec3 oc = ro - p3c;
  float b = dot(oc, rd), c = dot(oc, oc) - 0.35 * 0.35;
  float disc = b * b - c;
  if (disc > 0.0) {
    float ts = -b - sqrt(disc);
    if (ts > 0.05 && ts < linZ) {
      linZ = ts;
      vec3 hp = ro + rd * ts;
      nrm = normalize(hp - p3c);
      hitDist = 0.12;
      vec3 l1 = normalize(p1c - hp);
      vec3 l2 = normalize(p2c - hp);
      clean = vec3(0.24, 0.26, 0.30) * 0.3
            + vec3(0.18, 0.92, 1.0) * max(dot(nrm, l1), 0.0) * 0.95
            + vec3(1.0, 0.52, 0.22) * max(dot(nrm, l2), 0.0) * 0.85
            + vec3(0.9, 0.94, 1.0) * pow(max(dot(reflect(rd, nrm), l1), 0.0), 28.0) * 0.8;
    }
  }

  // Emissive vertical neon monolith cylinders (p1c & p2c)
  for (int k = 0; k < 2; k++) {
    vec3 pc = (k == 0) ? p1c : p2c;
    vec2 ro2 = ro.xz - pc.xz;
    vec2 rd2 = rd.xz;
    float A = dot(rd2, rd2);
    float B = dot(ro2, rd2);
    float C = dot(ro2, ro2) - 0.13 * 0.13;
    float D = B * B - A * C;
    if (D > 0.0) {
      float tc = (-B - sqrt(D)) / max(A, 1e-5);
      if (tc > 0.05 && tc < linZ) {
        vec3 hp = ro + rd * tc;
        if (hp.y > -0.42 && hp.y < 0.78) {
          linZ = tc;
          nrm = normalize(vec3(hp.x - pc.x, 0.0, hp.z - pc.z));
          hitDist = 0.05;
          clean = (k == 0) ? vec3(0.32, 1.55, 1.75) : vec3(1.75, 0.72, 0.26);
        }
      }
    }
  }
}

vec3 noisySample(vec2 fc, float rough, float noiseAmp, float t, out float hitDist, out vec3 nrm, out float linZ) {
  vec2 uv = (fc - 0.5 * iResolution.xy) / iResolution.y;
  vec3 clean;
  evalNRDScene(uv, rough, t, clean, hitDist, nrm, linZ);
  float fr = floor(t * 14.0) * 0.19;
  vec2 p = floor(fc);
  vec3 rnd = vec3(
    hash21(p + vec2(fr * 13.7, 5.1)),
    hash21(p + vec2(31.3, fr * 29.1)),
    hash21(p + vec2(fr * 41.3, 67.7))
  ) - 0.5;
  // Noise variance scales with roughness & hit distance (near contacts have crisp short rays; far rough reflections are noisy!)
  float sigma = noiseAmp * clamp(0.18 + rough * (0.4 + 0.9 * hitDist), 0.05, 1.6);
  return max(clean + rnd * sigma * (0.4 + clean * 1.1), 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) {
  float screenX = fragCoord.x / max(iResolution.x, 1.0);
  float split = clamp(P_SPLIT, 0.0, 1.0);
  float rough = clamp(P_ROUGHNESS, 0.06, 0.85);
  float hdAware = clamp(P_HIT_DIST_AWARE, 0.0, 1.0);
  float noiseAmp = clamp(P_NOISE_AMP, 0.1, 1.6);

  float cHD, cZ;
  vec3 cN;
  vec3 raw = noisySample(fragCoord, rough, noiseAmp, iTime, cHD, cN, cZ);
  vec3 col = raw;

  if (screenX >= split) {
    // Right: ReBLUR hit-distance-aware anisotropic kernel -- tight near contact hits, broad on distant rough hits
    float kernelR = mix(2.4, clamp(0.6 + cHD * rough * 5.2, 0.6, 4.8), hdAware);
    vec3 acc = vec3(0.0);
    float wSum = 0.0;
    for (int j = -2; j <= 2; j++) {
      for (int i = -2; i <= 2; i++) {
        vec2 off = vec2(float(i), float(j)) * kernelR;
        float qHD, qZ;
        vec3 qN;
        vec3 qCol = noisySample(fragCoord + off, rough, noiseAmp, iTime, qHD, qN, qZ);
        float wN = pow(max(dot(cN, qN), 0.0), 16.0);
        float wZ = exp(-abs(cZ - qZ) * 4.5);
        float wG = exp(-dot(vec2(float(i), float(j)), vec2(float(i), float(j))) * 0.28);
        float w = wN * wZ * wG;
        acc += qCol * w;
        wSum += w;
      }
    }
    col = acc / max(wSum, 1e-4);
  }

  float sep = smoothstep(0.0035, 0.0008, abs(screenX - split));
  col = mix(col, vec3(0.95, 0.98, 1.0), sep);
  fragColor = vec4(pow(clamp(aces(col), 0.0, 1.0), vec3(1.0 / 2.2)), 1.0);
}
```

Attribution: MIT — written for this index.

## Lineage

- extends [Spatiotemporal Variance-Guided Filtering (SVGF)](https://texelatlas.vercel.app/t/svgf.md)

## Combines with

- [ReSTIR DI: Spatiotemporal Reservoir Resampling for Direct Lighting](https://texelatlas.vercel.app/t/restir-di.md): ReSTIR direct lighting produces sparse, correlated samples that ReLAX is tuned to clean up.
- [Ray-Traced Shadows](https://texelatlas.vercel.app/t/ray-traced-shadows.md): Shadow rays with penumbra-distance output feed the shadow denoiser to get soft stable shadows.

## Sources

1. [primary] NVIDIA-RTX (2020) NVIDIA-RTX/NRD. https://github.com/NVIDIA-RTX/NRD License: NOASSERTION. (verified via github on 2026-11-29)
2. [implementation] NVIDIA-RTX (2021) NVIDIA-RTX/NRD-Sample. https://github.com/NVIDIA-RTX/NRD-Sample (verified via github on 2026-11-29)

## Cite this entry

Texel. "NVIDIA Real-time Denoisers (ReBLUR, ReLAX)." https://texelatlas.vercel.app/t/nvidia-nrd-relax-reblur/ (accessed 2026-12-01).
