[][src]Struct gltf::material::OcclusionTexture

pub struct OcclusionTexture<'a> { /* fields omitted */ }

Defines the occlusion texture of a material.

Methods

impl<'a> OcclusionTexture<'a>[src]

pub fn strength(&self) -> f32[src]

Returns the scalar multiplier controlling the amount of occlusion applied.

pub fn tex_coord(&self) -> u32[src]

Returns the set index of the texture's TEXCOORD attribute.

pub fn texture(&self) -> Texture<'a>[src]

Returns the referenced texture.

pub fn extras(&self) -> &Extras[src]

Optional application specific data.

Trait Implementations

impl<'a> AsRef<Texture<'a>> for OcclusionTexture<'a>[src]

Auto Trait Implementations

impl<'a> Send for OcclusionTexture<'a>

impl<'a> Sync for OcclusionTexture<'a>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.