Struct gltf_json::material::NormalTexture
source · pub struct NormalTexture {
pub index: Index<Texture>,
pub scale: f32,
pub tex_coord: u32,
pub extensions: Option<NormalTexture>,
pub extras: Extras,
}
Expand description
Defines the normal texture of a material.
Fields§
§index: Index<Texture>
The index of the texture.
scale: f32
The scalar multiplier applied to each normal vector of the texture.
This value is ignored if normalTexture is not specified.
tex_coord: u32
The set index of the texture’s TEXCOORD
attribute.
extensions: Option<NormalTexture>
Extension specific data.
extras: Extras
Optional application specific data.
Trait Implementations§
source§impl Clone for NormalTexture
impl Clone for NormalTexture
source§fn clone(&self) -> NormalTexture
fn clone(&self) -> NormalTexture
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for NormalTexture
impl Debug for NormalTexture
source§impl<'de> Deserialize<'de> for NormalTexture
impl<'de> Deserialize<'de> for NormalTexture
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 Serialize for NormalTexture
impl Serialize for NormalTexture
Auto Trait Implementations§
impl RefUnwindSafe for NormalTexture
impl Send for NormalTexture
impl Sync for NormalTexture
impl Unpin for NormalTexture
impl UnwindSafe for NormalTexture
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