Skip to main content

Module post_process

Module post_process 

Source
Expand description

Post-processing of the HDR RenderTexture, configured by the PostProcessSettings resource.

The effects run in these render passes:

To add a full-screen effect over the final image, add a sub-pass to RenderPassPostProcess. To add an HDR effect, add a pass between 50 and 90 that reads and writes the render texture.

Structs§

BloomSettings
Bloom of the bright parts of the image.
ChromaticAberrationSettings
Splitting of the color channels towards the image borders.
ColorGrading
Color grading, applied in HDR before the tonemapping, except lift, gamma and gain which are applied after.
ExposureSettings
Exposure of the image, on top of ColorGrading::exposure: a day/night compensation, and an optional eye adaptation to the image brightness, measured with a luminance histogram.
FilmGrainSettings
Animated film grain noise.
FogSettings
Exponential height fog, applied to the opaque geometry and to the sky, before the transparent objects.
PostProcessSettings
Settings of the post-processing stack. Insert it in the main world to configure the effects.
PostProcessTextures
Single-sampled textures of the post-processing stack, resized with the window.
RenderPassAntiAliasing
Anti-aliasing pass, rendering to the anti-aliased texture of the PostProcessTextures.
RenderPassBloom
Bloom: downsamples the [RenderTexture] through the bloom mips (thresholding the first one), then upsamples them back to the first mip, which is added to the image in the composite pass.
RenderPassComposite
Composite pass, rendering to the LDR texture of the PostProcessTextures.
RenderPassExposure
Eye adaptation: bins the luminance of the [RenderTexture] into a histogram, then moves the adapted exposure towards the one bringing its average (within the metering percentiles) to middle grey.
RenderPassFog
Fog render pass: blends the fog over the opaque geometry and the sky of the [RenderTexture].
RenderPassPostProcess
Final post-processing pass, rendering to the swapchain.
RenderPassSmaa
First two passes of the SMAA, from the LDR texture of the PostProcessTextures: the edge detection, then the blending weights of each pixel. The neighborhood blending is done by RenderPassAntiAliasing.
RenderPassTaa
Temporal anti-aliasing of the HDR [RenderTexture], before the bloom.
SharpeningSettings
AMD FidelityFX contrast adaptive sharpening, applied after the anti-aliasing to restore the details it blurred. It sharpens the low-contrast areas more than the edges, which limits the halos.
SmaaTextures
Intermediate textures of the SMAA, resized with the window.
TaaSettings
Settings of the AntiAliasing::Taa.
TaaTextures
Textures of the TAA, resized with the window. They are in the [RenderTexture::FORMAT].
VignetteSettings
Darkening of the image borders.

Enums§

AntiAliasing
Anti-aliasing of the final image.
SmaaPreset
Quality of the SMAA: the edge threshold, and the length of the edges searched.
Tonemapping
Operator mapping the HDR colors to the display range.

Constants§

BLOOM_MIP_COUNT
Number of bloom mips, each one half the size of the previous one (the first is half the screen size).