How do I
Turn on AgX tonemapping
Use GameObject > Pass Forge > Tonemapping Volume (AgX); AgX is a tonemapper that turns the HDR picture into one a screen can show, and a LUT is a color grade on top, which Color FX's Lookup applies after AgX.
You want
Bright lights and fire burn out to flat yellow or cyan with URP's tonemappers, and you want the soft highlight roll off of Blender's AgX. You also wonder whether AgX is a LUT.
AgX is a tonemapper: it turns the bright HDR picture into one a screen can show, so bright, saturated lights fade toward white instead of changing hue. A LUT, or lookup, is a color grade: it maps colors to other colors on a picture that is already tonemapped, for a teal and orange or a faded film look. You can use both. Pass Forge's AgX is for Unity 6.0 to 6.6; Unity 6.7 has AgX in URP itself.
Steps
- Choose GameObject > Pass Forge > Tonemapping Volume (AgX). It creates a global Volume named Pass Forge Tonemapping at priority 100 with a profile holding AgX, URP Tonemapping set to None and Deband, then runs Make AgX Work.
- Read the AgX Tonemapping inspector. AgX needs four things, and it names any that is missing:
- Post Processing on the camera.
- HDR, in the URP asset and on the camera. Make AgX Work never turns HDR on, because on phones that is your call; Turn On HDR does it.
- Grading Mode set to High Dynamic Range in the URP asset.
- URP Tonemapping set to None.
- Press Base, Punchy or Golden above the settings for Blender's looks. Punchy gives deeper shadows and richer color, Golden a warm, slightly faded tone. Values between blend.
- For a color grade on top, add Add Override > Pass Forge > Vision > Color FX and pick a Lookup: Pass Forge ships 112 lookups, and Import .CUBE brings in a .cube file from a photo or video app.
What you should see
Highlights roll off softly and bright lights fade toward white. The Overview's Setup tab names the tonemapper the open scenes use.
If it does not work
- Nothing changed. A new URP project has two of the four needs the other way: its URP assets grade in Low Dynamic Range, and its sample scene's profile turns URP's Neutral on. Press Make AgX Work in the AgX inspector, or Fix in Window > Pass Forge > Overview.
- Another Volume's tonemapper still wins. A Volume whose URP Tonemapping wins at the same or a higher priority is named and never changed, since its profile may be shared. Give the AgX Volume a higher priority, or use the menu item, which builds one at 100.
- You switched AgX off and the picture looks clipped. URP Tonemapping set to None beside it leaves the picture without a tonemapper. Press Use URP Neutral in the AgX inspector. To fade AgX, fade the Volume's weight instead of lowering Intensity to 0.
- URP's Color Lookup looks wrong. It clips the picture to 0 to 1 before AgX in High Dynamic Range grading. Use Color FX's Lookup, which runs after AgX.
- AgX does not show in a browser. A browser without float render targets falls back to 8 bits, where AgX steps aside. Check
AgxTonemappingEffect.Statusafter the first frame and switch to URP's Neutral there. - You are on Unity 6.7. Use URP's own AgX. Switch To URP AgX in the AgX inspector sets the profile to URP's AgX and Pass Forge's Intensity to 0.
From a script
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
// Turning AgX off must turn URP's tonemapper back on, or the picture is left with none.
public void UseAgx(bool on)
{
var profile = m_Volume.profile; // a private copy; the asset is untouched
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);
}
// One plain line for an options menu: whether AgX showed on the camera, or why not.
public static string StatusLine(Camera camera) => AgxTonemappingEffect.Describe(AgxTonemappingEffect.Status(camera));
}