API ReferenceSandbox
DepthOfFieldclass
Applies a depth of field effect to the camera
Constructors1
Showing 1 constructors
public DepthOfField()
No results match this filter.
Methods1
Showing 1 methods
public virtual void Render()
Returns:
void—No results match this filter.
Properties6
Showing 6 properties
public bool Sandbox.DepthOfField.BackBlur { get; set; }
Should we blur what's behind the focal point?
Returns:
bool—public float Sandbox.DepthOfField.BlurSize { get; set; }
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; }
Visualize the circle of confusion in black and white instead of the composite.
Returns:
bool—public float Sandbox.DepthOfField.FocalDistance { get; set; }
How far away from the camera to focus in world units.
Returns:
float—public float Sandbox.DepthOfField.FocusRange { get; set; }
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; }
Should we blur what's ahead of the focal point towards us?
Returns:
bool—No results match this filter.