Struct gltf::material::Transmission
source · pub struct Transmission<'a> { /* private fields */ }
Expand description
A set of parameter values that are used to define the transmissions factor of the material
Implementations§
source§impl<'a> Transmission<'a>
impl<'a> Transmission<'a>
sourcepub fn transmission_factor(&self) -> f32
pub fn transmission_factor(&self) -> f32
Returns the material’s transmission factor.
The default value is 0.0
.
sourcepub fn transmission_texture(&self) -> Option<Info<'a>>
pub fn transmission_texture(&self) -> Option<Info<'a>>
Returns the transmission texture.
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Transmission<'a>
impl<'a> Send for Transmission<'a>
impl<'a> Sync for Transmission<'a>
impl<'a> Unpin for Transmission<'a>
impl<'a> UnwindSafe for Transmission<'a>
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