Struct gltf_json::material::OcclusionTexture
source · pub struct OcclusionTexture {
pub index: Index<Texture>,
pub strength: StrengthFactor,
pub tex_coord: u32,
pub extensions: Option<OcclusionTexture>,
pub extras: Extras,
}
Expand description
Defines the occlusion texture of a material.
Fields§
§index: Index<Texture>
The index of the texture.
strength: StrengthFactor
The scalar multiplier controlling the amount of occlusion applied.
tex_coord: u32
The set index of the texture’s TEXCOORD
attribute.
extensions: Option<OcclusionTexture>
Extension specific data.
extras: Extras
Optional application specific data.
Trait Implementations§
source§impl Clone for OcclusionTexture
impl Clone for OcclusionTexture
source§fn clone(&self) -> OcclusionTexture
fn clone(&self) -> OcclusionTexture
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OcclusionTexture
impl Debug for OcclusionTexture
source§impl<'de> Deserialize<'de> for OcclusionTexture
impl<'de> Deserialize<'de> for OcclusionTexture
source§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
source§impl Serialize for OcclusionTexture
impl Serialize for OcclusionTexture
Auto Trait Implementations§
impl RefUnwindSafe for OcclusionTexture
impl Send for OcclusionTexture
impl Sync for OcclusionTexture
impl Unpin for OcclusionTexture
impl UnwindSafe for OcclusionTexture
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more