Struct gltf::material::OcclusionTexture
source · pub struct OcclusionTexture<'a> { /* private fields */ }
Expand description
Defines the occlusion texture of a material.
Implementations§
source§impl<'a> OcclusionTexture<'a>
impl<'a> OcclusionTexture<'a>
sourcepub fn strength(&self) -> f32
pub fn strength(&self) -> f32
Returns the scalar multiplier controlling the amount of occlusion applied.
sourcepub fn extensions(&self) -> Option<&Map<String, Value>>
pub fn extensions(&self) -> Option<&Map<String, Value>>
Returns extension data unknown to this crate version.
sourcepub fn extension_value(&self, key: &str) -> Option<&Value>
pub fn extension_value(&self, key: &str) -> Option<&Value>
Get the value of an extension based on the name of the extension
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for OcclusionTexture<'a>
impl<'a> Send for OcclusionTexture<'a>
impl<'a> Sync for OcclusionTexture<'a>
impl<'a> Unpin for OcclusionTexture<'a>
impl<'a> UnwindSafe for OcclusionTexture<'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