Struct gltf_json::material::NormalTexture []

pub struct NormalTexture {
    pub index: Index<Texture>,
    pub scale: f32,
    pub tex_coord: u32,
    pub extensions: NormalTexture,
    pub extras: Extras,
}

Defines the normal texture of a material.

Fields

The index of the texture.

The scalar multiplier applied to each normal vector of the texture.

This value is ignored if normalTexture is not specified.

The set index of the texture's TEXCOORD attribute.

Extension specific data.

Optional application specific data.

Trait Implementations

impl Clone for NormalTexture

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for NormalTexture

Formats the value using the given formatter.

impl Validate for NormalTexture

Validates only the invariants required for the library to function safely.

Validates the data against the glTF 2.0 specification.