pub struct OcclusionTexture {
pub index: Index<Texture>,
pub strength: StrengthFactor,
pub tex_coord: u32,
pub extensions: Option<OcclusionTexture>,
}Expand description
Defines the occlusion texture of a material.
Fields§
§index: Index<Texture>The index of the texture.
strength: StrengthFactorThe scalar multiplier controlling the amount of occlusion applied.
tex_coord: u32The set index of the texture’s TEXCOORD attribute.
extensions: Option<OcclusionTexture>Extension specific data.
Trait Implementations§
Source§impl Clone for OcclusionTexture
impl Clone for OcclusionTexture
Source§fn clone(&self) -> OcclusionTexture
fn clone(&self) -> OcclusionTexture
Returns a duplicate 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
Source§impl Validate for OcclusionTexture
impl Validate for OcclusionTexture
Source§fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R)
fn validate_minimally<P, R>(&self, _root: &Root, _path: P, _report: &mut R)
Validates only the invariants required for the library to function safely.
Auto Trait Implementations§
impl Freeze for OcclusionTexture
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