pub struct OcclusionTextureInfo {
pub texture: TextureInfo,
pub strength: f32,
}Expand description
An occlusion map reference and its strength multiplier.
Fields§
§texture: TextureInfoThe referenced occlusion texture, UV set, and transform.
strength: f32Occlusion influence in the inclusive range from zero to one.
Implementations§
Source§impl OcclusionTextureInfo
impl OcclusionTextureInfo
Sourcepub const fn new(texture: TextureInfo) -> Self
pub const fn new(texture: TextureInfo) -> Self
Creates an occlusion-map reference with the glTF default strength of one.
Sourcepub const fn with_strength(self, strength: f32) -> Self
pub const fn with_strength(self, strength: f32) -> Self
Sets the occlusion strength multiplier.
Trait Implementations§
Source§impl Clone for OcclusionTextureInfo
impl Clone for OcclusionTextureInfo
impl Copy for OcclusionTextureInfo
Source§impl Debug for OcclusionTextureInfo
impl Debug for OcclusionTextureInfo
Source§impl PartialEq for OcclusionTextureInfo
impl PartialEq for OcclusionTextureInfo
impl StructuralPartialEq for OcclusionTextureInfo
Auto Trait Implementations§
impl Freeze for OcclusionTextureInfo
impl RefUnwindSafe for OcclusionTextureInfo
impl Send for OcclusionTextureInfo
impl Sync for OcclusionTextureInfo
impl Unpin for OcclusionTextureInfo
impl UnsafeUnpin for OcclusionTextureInfo
impl UnwindSafe for OcclusionTextureInfo
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