public abstract class Sandbox.PostProcess : Sandbox.ComponentObsolete
Adds an effect to the camera
Obsolete
Switch to use BasePostProcess<>
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 PostProcess()
No results match this filter.
Methods
Showing 4 methods
protected virtual void OnDisabled()
Implementations
protected virtual void OnEnabled()
Implementations
protected virtual void OnUpdate()
protected virtual void UpdateCommandList()
You should implement this method and fill the CommandList with the actions that you want to do for this post process.
No results match this filter.
Properties
Showing 4 properties
public Sandbox.CameraComponent Sandbox.PostProcess.Camera { get; set; }
protected Sandbox.Rendering.CommandList Sandbox.PostProcess.CommandList { get; set; }
protected virtual int Sandbox.PostProcess.RenderOrder { get; set; }
Lower numbers get renderered first
protected virtual Sandbox.Rendering.Stage Sandbox.PostProcess.RenderStage { get; set; }
The stage in the render pipeline that we'll get rendered in
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.PostProcess |