pub struct VolumeExt {
pub thickness_factor: f32,
pub attenuation_distance: f32,
pub attenuation_color: [f32; 3],
}Expand description
Parameters for the KHR_materials_volume extension.
Fields§
§thickness_factor: f32Thickness of the volume in meters (default 0.0).
attenuation_distance: f32Distance at which the attenuation colour becomes dominant
(default f32::INFINITY).
attenuation_color: [f32; 3]Colour of the medium when attenuation_distance is reached
(default [1, 1, 1]).
Trait Implementations§
impl StructuralPartialEq for VolumeExt
Auto Trait Implementations§
impl Freeze for VolumeExt
impl RefUnwindSafe for VolumeExt
impl Send for VolumeExt
impl Sync for VolumeExt
impl Unpin for VolumeExt
impl UnsafeUnpin for VolumeExt
impl UnwindSafe for VolumeExt
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,
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