NVIDIA Real-time Denoisers (ReBLUR, ReLAX)
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.
Also known as NRD, ReBLUR, ReLAX, SIGMA
In the family Post-processing, color & imaging, path-tracing denoising
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 | None found | |
| Blender 5.2 | None found | OptiX and OIDN denoisers instead. |
| WebGPU W3C | None found | |
| Metal | None found |
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 choose it
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
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) when you want a compact algorithm you can read and port to WebGPU, Intel Open Image Denoise (OIDN) for final-frame offline output, and learned reconstruction such as NVIDIA DLSS when ray reconstruction is available on the target hardware.
Field marks
- 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
Presets
NVIDIA NRD (ReBLUR / ReLAX) — 1-spp noisy ray-traced specular & shadow (left) vs hit-distance-aware denoised output (right)
{
"P_ROUGHNESS": 0.34,
"P_HIT_DIST_AWARE": 1,
"P_NOISE_AMP": 0.8,
"P_SPLIT": 0.48
}Show GLSL (163 lines)
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.
Measured GPU weight & timing
| Preset | GPU | Weight / p50 / p95 | Method |
|---|---|---|---|
| nvidia-nrd-relax-reblur-live | Tesla T4 1920x1080 | 51.1× baseline (heavy) · 1.68 ms / 1.81 ms | opengl-timer-query · 32 frames · GPU Weight Atlas · Colab T4 sweep |
| nvidia-nrd-relax-reblur-live | NVIDIA L4 1920x1080 | 45.1× baseline (heavy) · 0.717 ms / 0.731 ms · 2.4× faster on L4 | opengl-timer-query · Cross-architecture validation |
| nvidia-nrd-relax-reblur-live | NVIDIA A100-SXM4-40GB 1920x1080 | 34.1× baseline (heavy) · 0.983 ms / 1.00 ms · 1.7× faster on A100 | opengl-timer-query · Cross-architecture validation |
Lineage
Crosses
- ReSTIR DI: Spatiotemporal Reservoir Resampling for Direct Lighting: ReSTIR direct lighting produces sparse, correlated samples that ReLAX is tuned to clean up.
- Ray-Traced Shadows: Shadow rays with penumbra-distance output feed the shadow denoiser to get soft stable shadows.
Sources
- primaryNVIDIA-RTX (2020). NVIDIA-RTX/NRD. NVIDIA Real-time Denoising (NRD) libraryGitHub API · license NOASSERTION · 2026-11-29
- implementationNVIDIA-RTX (2021). NVIDIA-RTX/NRD-Sample. NRD sample and sandbox, demonstrating path tracing and denoising best practicesGitHub API · no license declared · 2026-11-29