s&box docs

public sealed class Sandbox.DepthOfField : Sandbox.BasePostProcess<T>

Applies a depth of field effect to the camera

Broader workflow and conceptual references connected to this API.

Constructors

Showing 1 constructors

Methods

Showing 1 methods

public virtual void Render()

Properties

Showing 5 properties

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

Should we blur what's behind the focal point?

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

How blurry to make stuff that isn't in focus.

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

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

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

This modulates how far is the blur to the image.

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

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

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Engine
Doc IDT:Sandbox.DepthOfField

On this page