DepthOfFieldclass

Applies a depth of field effect to the camera

objectBasePostProcess<T>DepthOfField
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed class Sandbox.DepthOfField : Sandbox.BasePostProcess<T>

Constructors1

Showing 1 constructors

Methods1

Showing 1 methods

public virtual void Render()PUBLICVIRTUAL

Returns:void

Properties6

Showing 6 properties

public bool Sandbox.DepthOfField.BackBlur { get; set; }PUBLICGETSET

Should we blur what's behind the focal point?

Returns:bool

public float Sandbox.DepthOfField.BlurSize { get; set; }PUBLICGETSET

How blurry to make stuff that isn't in focus, the maximum blur radius in pixels.

Returns:float

public bool Sandbox.DepthOfField.DebugView { get; set; }PUBLICGETSET

Visualize the circle of confusion in black and white instead of the composite.

Returns:bool

public float Sandbox.DepthOfField.FocalDistance { get; set; }PUBLICGETSET

How far away from the camera to focus in world units.

Returns:float

public float Sandbox.DepthOfField.FocusRange { get; set; }PUBLICGETSET

How far from the `Sandbox.DepthOfField.FocalDistance` something has to be, in world units, before it's fully out of focus. Larger values give a softer, more gradual falloff. Defaults to the camera far plane.

Returns:float

public bool Sandbox.DepthOfField.FrontBlur { get; set; }PUBLICGETSET

Should we blur what's ahead of the focal point towards us?

Returns:bool

On this page