public abstract class Sandbox.BasePostProcess : Sandbox.Component
The base class for all post process effects.
Related Guides
Broader workflow and conceptual references connected to this API.
To make a post process shader you should derive from BasePostProcess<T>. This makes it easier to make a component that will be able to blend from multiple others.
The FilmGrain component adds simulated film-style grain to the camera output. It's purely visual – it does not affect gameplay or lighting – and is intended to add texture, grit or stylistic noise to the final image.
Constructors
Showing 1 constructors
protected BasePostProcess()
No results match this filter.
Methods
Showing 4 methods
protected void Blit(Sandbox.BasePostProcess.BlitMode blit, string debugName)
Helper to do a blit with the current camera's post process
protected void BlitSimple(Sandbox.Material shader, Sandbox.Rendering.Stage stage, int order, string debugName)
Helper to do a blit with the current camera's post process
protected void InsertCommandList(Sandbox.Rendering.CommandList cl, Sandbox.Rendering.Stage stage, int order, string debugName)
Helper to add a command list to the current camera's post process
public virtual void Render()
Override in your implementation to do your rendering
Implementations
No results match this filter.
Properties
Showing 1 properties
protected Sandbox.CameraComponent Sandbox.BasePostProcess.Camera { get; set; }
The camera we're being applied to. This is only valid during the Render call.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.BasePostProcess |