Struct gltf::material::OcclusionTexture [−][src]
pub struct OcclusionTexture<'a> { /* fields omitted */ }
Defines the occlusion texture of a material.
Methods
impl<'a> OcclusionTexture<'a>
[src]
impl<'a> OcclusionTexture<'a>
pub fn strength(&self) -> f32
[src]
pub fn strength(&self) -> f32
Returns the scalar multiplier controlling the amount of occlusion applied.
pub fn tex_coord(&self) -> u32
[src]
pub fn tex_coord(&self) -> u32
Returns the set index of the texture's TEXCOORD
attribute.
pub fn texture(&self) -> Texture<'a>
[src]
pub fn texture(&self) -> Texture<'a>
Returns the referenced texture.
pub fn extras(&self) -> &Extras
[src]
pub fn extras(&self) -> &Extras
Optional application specific data.
Trait Implementations
impl<'a> AsRef<Texture<'a>> for OcclusionTexture<'a>
[src]
impl<'a> AsRef<Texture<'a>> for OcclusionTexture<'a>
Auto Trait Implementations
impl<'a> Send for OcclusionTexture<'a>
impl<'a> Send for OcclusionTexture<'a>
impl<'a> Sync for OcclusionTexture<'a>
impl<'a> Sync for OcclusionTexture<'a>