Struct gltf_json::material::NormalTexture [−][src]
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
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
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
Mutably borrows from an owned value. Read more