Struct gltf::material::NormalTexture
[−]
[src]
pub struct NormalTexture<'a> { /* fields omitted */ }
Defines the normal texture of a material.
Methods
impl<'a> NormalTexture<'a>
[src]
fn as_json(&self) -> &NormalTexture
Returns the internal JSON item.
fn scale(&self) -> f32
The scalar multiplier applied to each normal vector of the texture. This value is ignored if normalTexture is not specified.
fn tex_coord(&self) -> u32
The set index of the texture's TEXCOORD
attribute.
fn texture(&self) -> Texture<'a>
Returns the referenced Texture
.
fn extras(&self) -> &Extras
Optional application specific data.