DocsGRADEReference

Ambient Occlusion

3 min read

On this page

Contact shadows in corners and creases from scene depth and normals, on top of Lumen.

Studio categoryScene
Pipeline stageScene (scene-linear HDR, before the tonemapper)
Default position1 in its stage
Works inLive views only (viewports, PIE, games, Movie Render Queue): needs scene depth or the level
C++ / BlueprintFGradeLayer::Effects.AmbientOcclusion (FGradeAmbientOcclusion)

Manual: Ambient Occlusion. Every numeric parameter can be set at runtime with Set Layer Parameter using the path shown (see Animation).

Parameters

Screen-space ambient occlusion added ON TOP of Lumen: horizon-based GTAO-style occlusion from scene depth and GBuffer normals, applied to scene-linear colour before the tonemapper (live only; Image mode ignores it). Visibility Bitmask method (default), bent normals, temporal + spatial denoise, half / full resolution, Indirect apply mode.

ParameterBlueprint pathValuesDefaultDescription
EnabledEffects.AmbientOcclusion.Enabledon/offoffTurns this on or off (the other values are kept while it is off).
IntensityEffects.AmbientOcclusion.Intensity0..100500..100
RadiusEffects.AmbientOcclusion.Radius5..500 cm60World radius in cm.
PowerEffects.AmbientOcclusion.Power0.5..41.5Contrast of the occlusion curve, 0.5..4.
Contact ShadowsEffects.AmbientOcclusion.ContactShadows0..10030Small-scale contact shadows (second, tight radius), 0..100.
Fade DistanceEffects.AmbientOcclusion.FadeDistance>= 0 cm (slider to 50000)8000Occlusion fades out beyond this distance from the camera (cm, 0 = never).
ThicknessEffects.AmbientOcclusion.Thickness1..200 cm30Assumed object thickness in cm (Visibility Bitmask: the real depth behind every visible surface, light passes beyond it; GTAO: fades halos behind thin objects).
Multi BounceEffects.AmbientOcclusion.MultiBounceon/offonMulti-bounce colour (occlusion tinted by the surface colour; physically brighter on light surfaces).
TintEffects.AmbientOcclusion.Tint.R/G/B/AcolourblackTint of the occluded areas (alpha unused).
Protect HighlightsEffects.AmbientOcclusion.ProtectHighlights0..10060Keep bright / emissive pixels (All light) or sunlit surfaces (Indirect light) un-occluded, 0..100.
QualityEffects.AmbientOcclusion.Quality0..3, integer2Directions x steps quality preset 0..3 (scaled by grade.Quality).
Show OnlyEffects.AmbientOcclusion.ShowOnlyon/offoffShow the occlusion buffer alone (debug).
MethodEGradeAOMethodVisibility Bitmask (VBAO)Occlusion method: Visibility Bitmask (thickness-aware, AAA default) or the classic GTAO horizon search.
Apply ModeEGradeAOApplyModeIndirect light (keep sunlit)Which light the occlusion darkens: all of it, or the indirect-looking part (sunlit surfaces stay bright).

Denoise

ParameterBlueprint pathValuesDefaultDescription
ResolutionEGradeAOResolutionHalfResolution of the occlusion pass (Half is upsampled with depth awareness; contact shadows are always full resolution).
Temporal DenoiseEffects.AmbientOcclusion.TemporalDenoiseon/offonAccumulate the occlusion over frames (reprojected with motion vectors, disocclusions rejected): far less noise.
Temporal StabilityEffects.AmbientOcclusion.TemporalStability0..10060How many frames the temporal denoise averages, 0..100 (higher = smoother but slower to react; 60 = about 13 frames).
Spatial DenoiseEffects.AmbientOcclusion.SpatialDenoise0..10050Edge-aware spatial blur, 0..100 (50 = the preset radius, 0 = off; it shrinks where the temporal history has converged).

Advanced

ParameterBlueprint pathValuesDefaultDescription
NormalsEGradeAONormalsAuto (GBuffer / depth)Normals the occlusion is measured around (Auto uses depth normals with Substrate's Adaptive GBuffer format or forward shading).

Debug

ParameterBlueprint pathValuesDefaultDescription
Debug ViewEGradeAODebugViewOcclusionBuffer shown by Show Occlusion Only.

Enumerations

AO Method (EGradeAOMethod)

ValueMeaning
GTAO (horizon)Horizon-based GTAO (Jimenez 2016): the classic method; thickness is a heuristic.
Visibility Bitmask (VBAO)Visibility Bitmask (Therrien 2023): 32 sectors per slice, real object thickness, light passes between thin layers.

AO Resolution (EGradeAOResolution)

ValueMeaning
HalfHalf resolution, depth-aware upsample (fast).
FullFull resolution (sharpest, about 3-4x the cost of the occlusion pass).

AO Normals (EGradeAONormals)

ValueMeaning
Auto (GBuffer / depth)GBuffer normals (normal-map detail) when the project uses the deferred GBuffer (Substrate's Blendable GBuffer included); depth normals with Substrate's Adaptive GBuffer or forward shading.
DepthNormals rebuilt from the scene depth (geometry only, works everywhere).

AO Apply Mode (EGradeAOApplyMode)

ValueMeaning
All light (classic)Darken all light (classic SSAO); Protect Highlights keeps bright / emissive pixels.
Indirect light (keep sunlit)Darken the ambient (indirect-looking) light: sunlit surfaces facing the sun keep their brightness (Protect Highlights sets how much).

AO Debug View (EGradeAODebugView)

ValueMeaning
OcclusionThe final occlusion (denoised, with contact shadows, multi-bounce and tint).
Raw occlusion (no denoise)The occlusion before the temporal and spatial denoise.
Bent normalsBent normals (mean unoccluded direction, view space: red = right, green = up, blue = towards the camera).
NormalsSurface normals used by the occlusion (view space, same colours).
History weightTemporal history weight: red = fresh / disoccluded, green = converged.

Generated from the GRADE C++ headers. Back to the reference index.