HDR Region EV (RUDRA)
Grade in nits, not in masquerading 8-bit — three bands, pushed in stops
- image
- mask1
- mask2
- mask3
- image
The thing this fixes
Once your master is scene-linear, every normal exposure slider in ComfyUI is wrong. A brightness node thinks 1.0 is white and clamps there; a curves node works in display-referred 0..1. In a linear master, 1.0 is 203 nits of diffuse white and a specular highlight might legitimately be at 15.0. Pull those sliders and you either crush the highlights or blow them.
HDR Region EV is a grade that thinks in absolute nits. Three bands of Rec.2020 luma, each defined by a low and a high edge in nits, each pushed up or down in stops with a soft edge, each optionally gated by a mask. The highlights band defaults to 400–2000 nits, speculars 2000–8000, shadows 0.05–12. You push the shadow band +0.5 and pull the specular band −1 and the whole top end sits down without the mid-tones noticing.
Anywhere with a proper finishing tool you'd do this with a luminance keyer and a grade node. This is the ComfyUI version, and it's the one node here I'd argue is genuinely useful even to someone who never touches HDR delivery - it's a better highlight roll-off control than anything in the default node set.
How it works
exposure_ev moves the whole image first. Then the bands read the exposed picture - the tooltip is explicit about that ordering and it matters, because moving the exposure changes which pixels fall inside each band. softness_stops (default 1) is how gradually each band's edges fade, in stops; how wide that ramp is decides whether the band boundary reads as a deliberate look or as a mistake.
Everything is measured on Rec.2020 luma, so a saturated blue and a grey at the same luminance get the same treatment. reference_white_nits is what 1.0 in your tensor means - 203 by default, so if you're grading a master where 1.0 was 100 nits you'd tell it that.
All three bands at 0 EV is a genuine identity: the node documents that 0 EV everywhere changes nothing. So it's safe to drop in ahead of time and leave flat.
Inputs and outputs
Required: image (scene-linear, Rec.709 or ACES primaries), exposure_ev, softness_stops, then the nine band fields - band1_low_nits, band1_high_nits, band1_ev, and the same for bands 2 and 3 - plus reference_white_nits. Optional: mask1, mask2, mask3, one per band, if you want a band to apply only in part of the frame.
One output: image. There's no mask or report out, which is the only real annoyance - if the result looks wrong you're diagnosing by eye.
Note the ranges: exposure_ev is ±6 stops, band EV is ±4, and band edges go up to 40,000 nits. Nothing here is clamped to a "reasonable" number, so typos like band1_high_nits = 20000 will quietly turn the band into "the entire highlight range" rather than erroring.
Install
Part of Radiance, so:
cd ComfyUI/custom_nodes
git clone https://github.com/fxtd-studios/radiance
cd radiance
python -m pip install -r requirements.txt
Manager route: search Radiance → Install → restart → refresh the browser. Windows portable: pip with python_embeded\python.exe. No downloads for this node.
Where people get burned
Low must be below high. Each band validates and raises a clear error if you swap them - that's a good error, but it's usually a sign you're editing the fields out of order and have just set a low edge above the old high edge.
Watch your scopes, not your monitor. If your display is SDR, a 2000-nit highlight just looks like white and your shadow-lift looks fine. Any SDR preview is showing you a tonemap, not the thing you're grading. The Radiance Viewer's exposure map is the point-and-look fix; without it, work in numbers and check with EV brackets.
Bands overlap happily. There's no enforcement that band 1 ends where band 2 starts, and overlapping soft edges means an area can be pushed twice, additively. Two stops of unintended lift is a very normal accident here. Keep the edges meeting at the same value.
A mask is per-frame or single. Passing one mask for a clip is fine; if you pass a sequence, make sure the frame count actually matches, because a mismatch gets clamped to the last frame and silently holds one mask for the rest of the shot.
Inputs (16)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Scene-linear HDR (Rec.709 or ACES primaries), 1.0 = reference_white_nits. | |
| exposure_ev | FLOAT | 0.00-6–6 | The whole picture, in stops, before the bands read it. |
| softness_stops | FLOAT | 1.000.05–4 | How soft each band's edges are, in stops. |
| band1_low_nits | FLOAT | 400.000.001–40000 | Band 1 (highlights by default): low edge, nits. |
| band1_high_nits | FLOAT | 2000.000.002–40000 | Band 1: high edge, nits. |
| band1_ev | FLOAT | 0.00-4–4 | Band 1: push in stops (0 = untouched). |
| band2_low_nits | FLOAT | 2000.000.001–40000 | Band 2 (speculars by default): low edge, nits. |
| band2_high_nits | FLOAT | 8000.000.002–40000 | Band 2: high edge, nits. |
| band2_ev | FLOAT | 0.00-4–4 | Band 2: push in stops (0 = untouched). |
| band3_low_nits | FLOAT | 0.050.001–40000 | Band 3 (shadows by default): low edge, nits. |
| band3_high_nits | FLOAT | 12.000.002–40000 | Band 3: high edge, nits. |
| band3_ev | FLOAT | 0.00-4–4 | Band 3: push in stops (0 = untouched). |
| reference_white_nits | FLOAT | 203100–1000 | What 1.0 means in the image. |
| mask1opt | MASK | Limit band 1 to this mask. | |
| mask2opt | MASK | Limit band 2 to this mask. | |
| mask3opt | MASK | Limit band 3 to this mask. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |