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

Properties5

Showing 5 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.

Returns:float

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

This modulates how far is the blur to the image.

Returns:float

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

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

Returns:bool

On this page