env_dof_controller is a point entity available with any version of Mapbase.

An entity that controls the depth of field settings for the player. Depth of field simulates camera blur of out-of-focus regions of the scene.



KeyValues

- Enabled (enabled) <choices>
Whether the effect should be active
- Near blur depth (near_blur) <float>
Distance that the blurriness is at its peak near the viewpoint.
- Near focus depth (near_focus) <float>
Distance that the focus is in full effect near the viewpoint.
- Near blur radius (near_radius) <float>
Radius (in pixels) to blur the surrounding pixels.
- Far blur depth (far_blur) <float>
Distance where blurriness is at its peak far from the viewpoint.
- Far focus depth (far_focus) <float>
Distance that the focus is in full effect far from the viewpoint.
- Far blur radius (far_radius) <float>
Radius (in pixels) to blur the surrounding pixels.
- Focus target (focus_target) <target_source>
Entity to use as a focal point.
- Focus target range (focus_range) <float>
Distance behind the focal plane to remain in focus.

Inputs

- SetNearBlurDepth <float>
Set the distance in front of the focus region at which the scene will be completely blurred using the near blur radius. Must be smaller than NearFocusDepth.
- SetNearFocusDepth <float>
The area between the near focus and far focus distances is perfectly in focus. Must be smaller than FarFocusDepth.
- SetFarFocusDepth <float>
The area between the near focus and far focus distances is perfectly in focus. Must be smaller than FarBlurDepth.
- SetFarBlurDepth <float>
Set the distance beyond the focus region at which the scene will be completely blurred using the far blur radius. Must be larger than FarFocusDepth.
- SetNearBlurRadius <float>
Set the blur radius (in pixels) to use at the near blur distance. Set to 0 to disable near blur.
- SetFarBlurRadius <float>
Set the blur radius (in pixels) to use at the far blur distance. Set to 0 to disable far blur.
- SetFocusTarget <string>
Set the focal target for the effect.
- SetFocusTargetRange <float>
Set the distance behind the focal point that will remain in focus.