Class BloomRenderer
Namespace: ValveResourceFormat.Renderer.PostProcess
Assembly: Renderer.dll
Post-processing renderer that creates bloom effects using multi-pass Gaussian blur.
public class BloomRendererInheritance
object ← BloomRenderer
Constructors
BloomRenderer(RendererContext, PostProcessRenderer)
Initializes a new BloomRenderer using the given renderer context and post-process renderer.
public BloomRenderer(RendererContext rendererContext, PostProcessRenderer postProcessRenderer)Parameters
rendererContext RendererContext
The renderer context providing shader loading and mesh buffer access.
postProcessRenderer PostProcessRenderer
The owning post-process renderer, used for shared state and format.
Fields
BloomMipCount
Number of mip levels in the bloom mip chain, starting at quarter resolution.
public const int BloomMipCount = 4Field Value
int
Properties
AccumulationResult
Gets the texture containing the final composited bloom result after the upsample passes.
public RenderTexture? AccumulationResult { get; }Property Value
EncodesEffectsBloom
Gets whether the effects bloom layer blooms sRGB encoded, as stored in an 8-bit target and read back without decoding.
public bool EncodesEffectsBloom { get; }Property Value
bool
ThresholdsExposedScene
Gets whether the scene is exposed before it is thresholded, which leaves the bloom in exposed space.
public bool ThresholdsExposedScene { get; }Property Value
bool
UsesTentUpsample
Gets whether the mips are upsampled with a tent filter rather than a 2x2 box.
public bool UsesTentUpsample { get; }Property Value
bool
Methods
Load()
Loads bloom shaders and allocates the mip chain and output framebuffers.
public void Load()Render(RenderTexture, RenderTexture?, RenderTexture?, BloomSettings, float)
Renders multi-pass bloom from the resolved scene color into BloomRenderer.AccumulationResult.
public void Render(RenderTexture input, RenderTexture? effectsBloom, RenderTexture? bloomAmount, BloomSettings settings, float sceneWeight)Parameters
input RenderTexture
The resolved scene color, thresholded before it blooms.
effectsBloom RenderTexture?
Geometry drawn only to glow, bloomed whole without a threshold, or null.
bloomAmount RenderTexture?
The per-pixel bloom amount of the scene, 0 where the scene is thresholded as usual, or null.
settings BloomSettings
The bloom settings to apply.
sceneWeight float
How much of the thresholded scene blooms: 0 blooms only effectsBloom.

