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 accumulation buffer.
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
Methods
Load()
Loads bloom shaders and allocates ping-pong and accumulation framebuffers.
public void Load()Render(RenderTexture, RenderTexture?, BloomSettings, float)
Renders multi-pass bloom from the resolved scene color into BloomRenderer.AccumulationResult.
public void Render(RenderTexture input, RenderTexture? effectsBloom, 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.
settings BloomSettings
The bloom settings to apply.
sceneWeight float
How much of the thresholded scene blooms: 0 blooms only effectsBloom.

