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