Manual
Tonemapping and debanding
A tonemapper turns the bright HDR picture into one a screen can show. URP's Tonemapping override has two, Neutral and ACES. AgX Tonemapping (Add Override > Pass Forge > Output) adds AgX, the filmic tonemapping of Blender: highlights roll off softly, and bright, saturated lights fade toward white instead of changing hue. It is for Unity 6.0 to 6.6; Unity 6.7 has AgX in URP itself, see the end of this section.
| Setting | What it does |
|---|---|
| Intensity | How much of the AgX picture shows. Below 1 it mixes in URP's Neutral look. Zero turns AgX off and costs nothing, but URP Tonemapping set to None beside it then leaves the picture without a tonemapper, so fade the Volume's weight instead, see Fading. |
| Punch | A Punchy look in the style of Blender's: deeper shadows and richer color. |
| Golden | A Golden look in the style of Blender's: a warm, slightly faded photographic tone. It combines with Punch. |
The Base, Punchy and Golden buttons above the settings set Punch and Golden together, as one Undo step. Values between blend, so one Volume can be Golden and another Punchy. AgX has no Exposure: URP's Post Exposure and Pass Forge's Eye Adaptation act before it.
Setting it up. GameObject > Pass Forge > Tonemapping Volume (AgX) does it in one step. It creates a global Volume named Pass Forge Tonemapping at priority 100, above hand made Volumes, with a profile in Assets/Pass Forge Effects/Volume Profiles that holds AgX, URP Tonemapping set to None, and Deband. Then it runs Make AgX Work. A scene that already has a global Volume turning AgX up gets that Volume selected instead, as long as no other Volume's URP Tonemapping wins over it at the same or a higher priority. In a new URP project the sample scene's Global Volume and an Effects Volume both sit at priority 0, so there the menu item builds its own Volume. Running it again selects the Volume it built.
AgX needs four things. Without any of them it steps aside and records nothing, so the picture is never tonemapped twice:
| AgX needs | Without it |
|---|---|
| Post Processing on the camera | No screen effect shows on the camera. |
| HDR, in the URP asset and on the camera | The picture is clipped at white before AgX sees it. |
| Grading Mode set to High Dynamic Range in the URP asset | Low Dynamic Range grading clips highlights before AgX. |
| URP Tonemapping set to None | URP's own tonemapper is used instead. |
A new URP project has two of these the other way: both of its URP assets grade in Low Dynamic Range, and the sample scene's profile turns URP's Neutral on. A camera that draws into a render texture renders in that texture's format, so give the texture a float format, such as R16G16B16A16_SFLOAT, for AgX to show there.
Make AgX Work makes the changes AgX needs, as one Undo step. It sets Grading Mode to High Dynamic Range in the URP assets of Graphics and Quality settings that have HDR on, and sets URP Tonemapping to None in the profile that turns AgX up. Nothing else changes. A Volume whose URP Tonemapping still wins, at the same or a higher priority, is named, never changed, because its profile may be shared with scenes that have no AgX: give the Volume that turns AgX up a higher priority, or use the menu item, which adds one at 100. Make AgX Work never turns HDR on, because on phones that is your call; Turn On HDR does that. In High Dynamic Range grading, Color Adjustments and curves apply before tonemapping, so an existing grade can shift a little. Shipped profiles are read only and stay as they are. The AgX Tonemapping inspector, the presets window, the Screen Look inspector and the Overview each say what keeps AgX from showing, with this button, and the Overview's Setup tab names the tonemapper the open scenes use. The Overview also names a Tonemapping node that does not run where AgX works: switched off, removed from its graph, in a renderer feature that is off, or in a graph that runs before post processing or at After Rendering.
Presets. AgX Filmic, AgX Punchy and AgX Golden hold AgX with URP Tonemapping set to None. A Screen Look shows a preset at priority 10, above hand made Volumes at 0, so while it shows, its None wins over a scene's Neutral or ACES, and when it stops, the scene's own tonemapper comes back. In the presets window an AgX preset adds to the current look, and sets URP Tonemapping to None in the Volume it is written into. Turn Off All and Turn off other Pass Forge screen effects leave AgX on, as they leave Deband on. Switch AgX off in such a Volume and its URP Tonemapping stays at None, which leaves the picture without a tonemapper; the AgX inspector says so, with Use URP Neutral. Save Current Look As Preset keeps None beside AgX. The calls in EffectPresetUtility copy Pass Forge effects only and switch AgX off like any effect; call EffectPresetUtility.MatchUrpTonemapping(volume.profile) after them, which sets URP Tonemapping to None while the profile turns AgX up and gives it back once it does not. A settings menu can also switch it itself, as below.
Fading. URP's Tonemapping mode does not blend: the Volume with the highest priority that shows at all decides it, so a switch between URP's tonemapper and AgX is instant. To fade AgX in or out, fade the Volume's weight, as Screen Looks, Moments and Timeline clips do. AgX's Intensity follows the weight, and below 1 it mixes in URP's Neutral curve, while the None beside it holds until the weight reaches 0 and the Volume drops out, so no frame is clipped. From a scene that uses Neutral the fade is smooth; from one that uses ACES, the first frame changes a little. On an HDR display, AgX and its mix with Neutral stay within paper white, so a fade from URP's Neutral starts by bringing highlights down to paper white. Intensity 0 is different: AgX is off, and the URP Tonemapping None beside it leaves the picture without a tonemapper, so a script that lowers Intensity to 0 must also turn URP's tonemapper back on, as below.
From a script. A settings menu switches with the Volume API. Turning AgX off must turn URP's tonemapper back on, or the picture is left with none:
using PassForge.Effects;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
public class TonemapperOption : MonoBehaviour
{
[SerializeField] Volume m_Volume; // the Pass Forge Tonemapping Volume
public void UseAgx(bool on)
{
// Volume.profile is a private copy, so the asset is untouched.
var profile = m_Volume.profile;
if (profile.TryGet(out AgxTonemappingEffect agx))
agx.intensity.Override(on ? 1f : 0f);
if (profile.TryGet(out Tonemapping tonemapping))
tonemapping.mode.Override(on ? TonemappingMode.None : TonemappingMode.Neutral);
}
}
AgxTonemappingEffect.Status(camera) says whether AgX showed on a camera the last time it rendered, or why not, and AgxTonemappingEffect.Describe(status) gives one plain line for a settings menu or a log. Both allocate nothing. A player build where AgX is turned up but cannot show logs the reason once, never every frame. The showcase scenes show that line under the look's name, and the Benchmark lists such a look as not measured, with the reason.
A build leaves out the AgX pass when no profile in it turns AgX up. If only a script turns AgX up, add AgX Tonemapping under Always Include in Project Settings > Pass Forge, or ship a profile with AgX up and change its Volume's weight instead.
What it changes. AgX runs first after URP's post processing, where URP's own tonemapper would run: after bloom and color grading, before every other Pass Forge effect after post processing. Effects before post processing, such as highlights, the lens and world effects and weather, are tonemapped with the scene. Effects after it, from the screen looks to Damage Numbers, Letterbox, Color Vision and Deband, draw on the tonemapped picture and keep their exact colors.
- URP Color Lookup clips the picture to 0 to 1 before AgX in High Dynamic Range grading. Use Color FX's Lookup, which runs after AgX.
- URP adds its Film Grain and Dithering before AgX, unless it draws a final pass for FXAA, TAA sharpening or upscaling, so AgX reshapes them. Deband replaces URP's Dithering.
- HDR displays. AgX keeps highlights at paper white, so an HDR screen shows the same picture as SDR, at paper white brightness and no brighter. Colors outside Rec. 709 are clipped to it on wide gamut HDR displays. For brighter highlights there, use URP's Neutral or ACES:
UseAgx(!HDROutputSettings.main.active)with the script above. A fade from URP's Neutral there starts by bringing highlights down to paper white. - WebGL. AgX needs a float picture. A browser without float render targets falls back to 8 bits, where AgX steps aside, the effect graph stays out of the frame, and
StatusreadsHdrOff. Check it once after the first frame and callUseAgx(false)there, so the player gets URP's Neutral instead of no tonemapper. - Scene view. With Run In Scene View off, the After Post-Processing feature still runs its Tonemapping node in the Scene view, as URP's own tonemapping shows there, and keeps every other effect out of it.
- Injection Point. The Tonemapping node works in a graph at After Rendering Post Processing. Before post processing it passes the picture on untouched, and at After Rendering URP has usually drawn the picture to the screen already, so AgX steps aside there too.
- Camera stacks. AgX follows URP's own tonemapping: every camera with Post Processing on is tonemapped.
- Gamma. In the Gamma color space AgX works, but its look is tuned for Linear. There, turn off Fast sRGB/Linear conversions under Post-processing in the URP asset: it clips highlights before AgX, so AgX steps aside, as with Low Dynamic Range grading. The AgX inspector names an asset that has it on.
- Cost. One full screen pass while it is on, labelled Light. When nothing else runs after post processing, URP also adds its final copy to the screen, which it otherwise skips. URP's own tonemappers cost nothing extra, because they are part of its color grading.
Unity 6.7. URP's Tonemapping has AgX of its own from Unity 6.7, free and aware of HDR displays. Use URP's own AgX there; Pass Forge's switches over with one click. The menu item builds the Volume with URP's AgX, and the AgX Tonemapping inspector's Switch To URP AgX sets a profile to URP's AgX and Pass Forge's Intensity to 0, as one Undo step. Wherever URP's tonemapper is on, Pass Forge's AgX steps aside, so the two never stack.
Deband removes the bands that show in skies, fog, vignettes and dark gradients. It runs last, after Color Vision, on the whole picture, and costs one full screen pass while it is on. The presets window's Turn Off All and Turn off other Pass Forge screen effects leave it on, and the Deband preset adds to the current look.
- Noise hides only the steps made after it: those of the screen's 8-bit color and of URP's own picture. It cannot remove bands already in the picture when Pass Forge gets it, from an 8-bit camera with HDR off, from URP's 32-bit HDR format or from a compressed sky texture. Smooth Bands handles those: where neighbors lie within about two levels of each other, it evens the steps out, and the noise then carries the levels between them to the screen. Edges and detail differ by more, so they stay sharp. Zero skips it and saves four texture reads. Wider bands, such as a sky texture with visible color steps, need a better texture.
- Intensity 1 adds just enough noise to hide the steps the screen would make, about one level. It is sized to where the picture goes: an 8-bit screen, an HDR display, or the format of a render texture the camera draws into. Animate changes the noise every frame, so it averages into a smooth gradient. Off, or in safe mode, it stays still.
- HDR Precision 64 Bits in the URP asset removes, at the source, the bands URP's 32-bit HDR format leaves in bright skies, at the cost of more memory bandwidth. Without it, Smooth Bands evens them out.
- On Android, keep Use 32-bit Display Buffer on in the Player Settings, as Unity 6 sets it. Off, phones show 16-bit color with heavy banding, which no setting of Deband can read or fully hide.
- Switch Deband off for pixel art and other looks of hard, flat colors, which its noise would dither.
- With a Render Scale below 1, URP scales the picture up after Deband, which makes the noise coarser. Lower Intensity if it shows.
- Screen Space - Overlay canvases draw after the camera, so Deband does not reach them.
- A camera's own URP Dithering adds 8-bit noise too: before Pass Forge's effects, or after Deband when URP draws a final pass for FXAA, TAA sharpening or FSR upscaling (on Unity 6.0 to 6.3, any upscaling filter but Linear). Keep one. The Deband inspector and the Overview name cameras that have both, with a button that turns URP's off. URP's Dithering is the better choice when nothing of Pass Forge runs after post processing, because then it costs nothing.