Version: 2017.3 (switch to 2017.4)
Fog
Motion Blur
Other Versions

Depth of Field

The effect descriptions on this page refer to the default effects found within the post-processing stack.

Depth of Field is a common post-processing effect that simulates the focus properties of a camera lens. In real life, a camera can only focus sharply on an object at a specific distance; objects nearer or farther from the camera will be somewhat out of focus. The blurring not only gives a visual cue about an object’s distance but also introduces Bokeh which is the term for pleasing visual artifacts that appear around bright areas of the image as they fall out of focus.

An example of Depth of Field effect can be seen in the following images, displaying the results of a focused midground but a defocused background and foreground.

Scene with Depth of Field.
Scene with Depth of Field.
Scene without Depth of Field.
Scene without Depth of Field.
UI for Depth of Field
UI for Depth of Field

Properties

Property: Function:
Focus Distance Distance to the point of focus.
Aperture Ratio of the aperture (known as f-stop or f-number). The smaller the value is, the shallower the depth of field is.
Focal Length Distance between the lens and the film. The larger the value is, the shallower the depth of field is.
Use Camera FOV Calculate the focal length automatically from the field-of-view value set on the camera.
Kernel Size Convolution kernel size of the bokeh filter, which determines the maximum radius of bokeh. It also affects the performance (the larger the kernel is, the longer the GPU time is required).

Optimisation

  • Reduce Kernel Size

Requirements

See the Graphics Hardware Capabilities and Emulation page for further details and a list of compliant hardware.


对文档有任何疑问,请移步至开发者社区提问,我们将尽快为您解答