Skip to main content

Post-processing

Post-processing changes the finished picture: things glow, the background blurs, corners darken, colours shift. It works like Unity's: a profile is a file that lists the effects and their settings, and a Post-processing Volume on an object puts a profile on the screen, everywhere or only while the camera is inside a box.

You see the effects in the editor view as well as in the game.

Glow on the neon, drawn in the editor view
Glow on the neon, drawn in the editor view

Make a look​

  1. Add the Post-processing volume component to an object (an empty one is fine): Add component → Post-processing volume.
  2. Tap + Add effect… under it and pick one, for example Bloom. With no profile yet, one is made for you, named after the object, and the volume uses it.
  3. The effect appears as a section with its settings. Drag a slider and watch the view.
A Global volume: its profile, weight and priority, and the profile's effects right below
A Global volume: its profile, weight and priority, and the profile's effects right below
Add effect…
Add effect…

Each effect section has a box to switch it on or off (its settings are kept) and a ⋮ menu to remove it. Open shows the whole profile on a page of its own.

The profile page
The profile page

The box in front of each setting is Unity's override box: unticked, the profile leaves that setting as the volumes below it set it (it shows dimmed). That lets a volume change only the vignette, say, and nothing else.

Files → Profiles
Files → Profiles

A profile is a file in Files → Profiles (also + New → Post-processing profile). It is shared: change it and every volume that uses it changes, as in Unity. Give two volumes the same profile to reuse a look, or different profiles for different places.

Effects​

EffectWhat it doesSettings
Ambient occlusionSoft shadow in corners and creases. Draws the scene a second time, so it costs speed.Radius, Intensity
Volumetric fogFog that fills the air and lights up where light passes through it: shafts of sunlight between pillars and trees (the sun's shadows cut through the fog), glows around lamps, haze that hides the distance. Unity HDRP's Volumetric Fog. More below.Density, Color, Max distance, Base height, Height falloff, Anisotropy, Light intensity, Ambient
BloomBright things glow softly: lamps, fire, neon. Materials with a bright Emissive colour are what glow.Intensity, Threshold (how bright before it glows), Diffusion (how far it spreads)
Color gradingThe overall colour of the picture.Saturation (1 = as drawn, 0 = grey, 2 = vivid), Contrast
Depth of fieldBlurs what is far from the focus distance. Draws the scene a second time, so it costs speed.Focus object (keeps that object sharp: the focus follows how far it is from the camera), Focus distance (m, used when no object is set), Aperture (how fast it blurs), Max blur
VignetteDarker corners.Intensity
Chromatic aberrationRed and blue edges drift apart toward the sides, like a cheap lens.Intensity
Temporal anti-aliasing (TAA)The smoothest edges: every frame the camera moves a fraction of a pixel and the frames are blended, so edges are smooth and thin things (leaves, grass, wires, far fences) stop crawling. Things that move leave no trails. Used instead of FXAA when both are on. Unity's TAA.Sharpness (against the slight softness)
Motion blurThe picture smears as the camera moves or turns, like a real camera. Unity's Motion Blur in Camera Only mode: objects moving past a still camera are not blurred.Intensity (how long the smear is, as a share of the camera's movement in one frame), Clamp (longest smear, as a share of the screen)
Screen space reflectionsSmooth surfaces mirror what is on screen: a polished floor shows the pillars standing on it, a wet street the lamps. Unity HDRP's Screen Space Reflection.Intensity, Max distance (how far a reflection reaches, m), Object thickness (how thick surfaces count as behind what is seen, m), Minimum smoothness (surfaces smoother than this reflect)
Anti-aliasing (FXAA)Smooths jagged edges cheaply. Use it instead of Smooth edges (antialias) in Project settings, which is slow when effects are on.none

Ambient occlusion, depth of field and volumetric fog are the heavy ones on phones. The rest cost little. Volumetric fog, TAA and motion blur share one extra draw of the scene's depth; screen space reflections make one more.

Motion blur: the pillars smear sideways as the camera turns

Screen space reflections​

A smooth floor mirroring the pillars and the block standing on it

Only Realistic materials reflect: smoothness is 1 − their Roughness, so a roughness of 0.1 is a near mirror and 0.5 (with the default Minimum smoothness) only just reflects. Metalness makes the reflection strong even looking straight down and tints it with the surface colour; other surfaces reflect mostly at a glancing angle, like real floors and water. Roughness and metalness maps are not read: the material's own values count.

Only what is on screen can be reflected. Where a reflection would show something off screen, behind the camera or hidden behind another object, it fades out (the floor near the bottom edge of the picture reflects nothing). For a true mirror use the Mirror look on a plane instead. The steps of the reflections are smoothest with Temporal anti-aliasing on.

The quality level's Screen space reflections switch turns it off (Medium and Low do).

Volumetric fog​

Volumetric fog in the editor view: a lamp's warm glow in the haze, and the far pillars fading into it

Each pixel looks through the fog up to what it shows (or Max distance against the sky). Light scatters toward the camera from the sun, from the 8 point and spot lights nearest the camera, and from the ambient light. Where the sun's shadow falls, the fog stays dark, so the light shows as shafts. The sun needs Cast shadows on for the shafts.

SettingWhat it does
DensityHow thick the fog is at the base height (per metre). 0.01 is a light haze, 0.05 a misty morning, 0.2 thick fog.
ColorThe colour the fog scatters light in. White fog takes the colour of the lights.
Max distanceHow far from the camera the fog reaches (m). The sky sits behind this much fog.
Base heightBelow this height (Y) the fog is at full density.
Height falloffHow fast it thins above the base height: 0 = the same everywhere, 0.5 = gone a few metres up (fog lying in a valley).
AnisotropyHow much of the light keeps going forward: at 0.6 (like real air) the fog is brightest looking toward the sun and the shafts stand out. 0 = the same from every side; below 0 it lights up looking away from the light.
Light intensityHow bright the lights make the fog.
AmbientHow much the ambient light alone lights the fog. Lower it for dark fog where only the light shafts and lamps show.

It also draws in the editor's 3D view. The quality level's Volumetric fog switch turns it off (Medium and Low do). TAA goes with the level's Edge smoothing switch, motion blur with its Motion blur switch (Low turns it off).

Where it applies: the volume​

SettingWhat it does
ProfileThe profile to put on the screen.
GlobalOn: everywhere. Off: only near the box below.
SizeThe box (centred on the object, and scaled with it), in metres. Shown when Global is off.
Blend distanceHow far outside the box the effects start to fade in (0 = a hard edge).
WeightHow much of the profile counts, 0 to 1.
PriorityWhen volumes overlap, the higher priority is applied last, on top.
A Box volume: size, blend distance and priority
A Box volume: size, blend distance and priority

The camera decides: walk (or fly) into a box volume and its effects fade in over the blend distance. Where several volumes reach the camera they blend from the lowest priority to the highest, each by its weight. An effect a profile does not have is left as the volumes below set it.

tip

A Global volume for the game's look, plus a Box volume with a higher priority for a special place (a dream, a cave, under water), is the usual setup. The Post-processing template does exactly that, with Kenney's special lines floor marking stretched over the zone so you can see where it is.

Changing it while playing​

Volumes

  • Events (group Graphics): Set volume weight (0 = none, 1 = all, with Seconds to glide) and Set volume profile on an object that has the component.
  • Scripts: obj.setVolumeWeight(0, 1.5) fades a volume out over 1.5 s (or obj.component('volume').weight = 0.5 at once), and obj.component('volume').profile = 'Underwater' swaps the profile (give its name).

The effects themselves

  • Events (group Graphics): Focus depth of field on object (the object's name becomes the focus object), Set screen effect (vignette, colour fringe, saturation, contrast, glow strength, spread and threshold, focus distance, blur amount and limit, occlusion size and strength) with a value and Seconds to glide (0 = at once), and Switch screen effect on or off (edge smoothing, glow, depth of field, ambient occlusion).
  • Scripts: game.effects.vignette = 0.6, game.effects.focusDistance = 4, game.effects.focusObject = 'Player' (or '' to go back to the distance), game.effects.glow = true, or game.effects.set('vignette', 0.8, 2) to glide over 2 seconds.

What an event or script sets sits on top of the volumes, so a script can still drive one effect while the volumes handle the rest. A new scene starts clean. Numbers stay inside the ranges the editor allows.

To switch an effect on that no volume has, turn on Effects from scripts and events in Project settings.

Graphics quality​

A player's quality level can switch each kind of effect off (Low does): the volumes keep working, the effect is just not drawn. A level never adds an effect no volume has.

From older projects​

Projects made before profiles had their effects in the Scene tab. When you open one, each scene that had effects gets a profile called “Scene name” effects and a Post-processing object with a Global volume that uses it. Nothing looks different.

In the editor view​

The editor view draws the effects of the volumes the editor camera is in, like Play.

A volume that is not Global shows its box in the editor view: an orange outline for the box and a fainter one where the blend distance ends. Focus on it frames the whole box.

The dream zone: its box, the blend outline and the floor marking the template adds
The dream zone: its box, the blend outline and the floor marking the template adds

The move tools and the camera preview in the corner are drawn without them. If the view feels slow with heavy effects, switch the effect off in its profile while you build.