pub struct DepthOfField {
pub focal_length_mm: f32,
pub f_number: f32,
pub sensor_width_mm: f32,
pub max_blur_pixels: f32,
pub blade_count: u8,
pub focus: FocusTarget,
}Expand description
Thin-lens depth-of-field settings for cinematic presentation.
Fields§
§focal_length_mm: f32Lens focal length, millimetres.
f_number: f32Aperture f-number.
sensor_width_mm: f32Horizontal sensor extent, millimetres.
max_blur_pixels: f32Maximum circle-of-confusion radius, physical pixels.
blade_count: u8Aperture blade count, clamped to [3, 12].
focus: FocusTargetScene target from which the focal plane is resolved.
Implementations§
Source§impl DepthOfField
impl DepthOfField
Trait Implementations§
Source§impl Clone for DepthOfField
impl Clone for DepthOfField
impl Copy for DepthOfField
Source§impl Debug for DepthOfField
impl Debug for DepthOfField
Source§impl<'de> Deserialize<'de> for DepthOfField
impl<'de> Deserialize<'de> for DepthOfField
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DepthOfField
impl PartialEq for DepthOfField
Source§impl Serialize for DepthOfField
impl Serialize for DepthOfField
impl StructuralPartialEq for DepthOfField
Auto Trait Implementations§
impl Freeze for DepthOfField
impl RefUnwindSafe for DepthOfField
impl Send for DepthOfField
impl Sync for DepthOfField
impl Unpin for DepthOfField
impl UnsafeUnpin for DepthOfField
impl UnwindSafe for DepthOfField
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more