Class WorldPostProcessInfo
Namespace: ValveResourceFormat.Renderer.World
Assembly: Renderer.dll
Manages post-processing volumes and current post-processing state for the scene.
public class WorldPostProcessInfoInheritance
Constructors
WorldPostProcessInfo()
Manages post-processing volumes and current post-processing state for the scene.
public WorldPostProcessInfo()Properties
CurrentState
Gets the post-processing state computed for the current frame.
public PostProcessState CurrentState { get; }Property Value
MasterPostProcessVolume
Gets or sets the master post-process volume, which overrides all others.
public ScenePostProcessVolume? MasterPostProcessVolume { get; set; }Property Value
MasterTonemapController
env_tonemap_controller is a legacy entity (S1) that still has functionality, so we want to account for it. The way this works is a little unclear, even after quite a bit of testing, but I think an env_tonemap_controller existing in the level overrides the post process volume regardless of if it's set as master. TODO: Test if this applies to post process volumes
public SceneTonemapController? MasterTonemapController { get; set; }Property Value
Methods
AddPostProcessVolume(ScenePostProcessVolume)
Registers a post-process volume; only the first master volume is retained.
public void AddPostProcessVolume(ScenePostProcessVolume postProcess)Parameters
postProcess ScenePostProcessVolume
The post-process volume to register.
UpdatePostProcessing(Camera)
Recalculates from the active post-process volumes and tonemap controller. Must be called every frame before rendering post-processing.
public void UpdatePostProcessing(Camera camera)Parameters
camera Camera
The active camera (reserved for future volume weighting by position).

