bevy_core_pipeline

Module dof

Source
Expand description

Depth of field, a postprocessing effect that simulates camera focus.

By default, Bevy renders all objects in full focus: regardless of depth, all objects are rendered perfectly sharp (up to output resolution). Real lenses, however, can only focus on objects at a specific distance. The distance between the nearest and furthest objects that are in focus is known as depth of field, and this term is used more generally in computer graphics to refer to the effect that simulates focus of lenses.

Attaching DepthOfField to a camera causes Bevy to simulate the focus of a camera lens. Generally, Bevy’s implementation of depth of field is optimized for speed instead of physical accuracy. Nevertheless, the depth of field effect in Bevy is based on physical parameters.

Structs§

Enums§

Functions§

Type Aliases§