pub struct OcclusionTextureAsset {
pub texture: TextureAsset,
pub strength: f32,
}Expand description
An occlusion texture and the scalar applied to its sampled value.
Keeping the strength beside the texture makes the glTF occlusion-texture state atomic: a strength cannot accidentally survive after its texture is removed.
Fields§
§texture: TextureAssetEmbedded encoded occlusion texture.
strength: f32Scalar multiplier for the sampled occlusion value.
Trait Implementations§
Source§impl Clone for OcclusionTextureAsset
impl Clone for OcclusionTextureAsset
Source§fn clone(&self) -> OcclusionTextureAsset
fn clone(&self) -> OcclusionTextureAsset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OcclusionTextureAsset
impl RefUnwindSafe for OcclusionTextureAsset
impl Send for OcclusionTextureAsset
impl Sync for OcclusionTextureAsset
impl Unpin for OcclusionTextureAsset
impl UnsafeUnpin for OcclusionTextureAsset
impl UnwindSafe for OcclusionTextureAsset
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