pub struct Occlusion {
pub texture: Arc<GrayImage>,
pub factor: f32,
}
Expand description
Defines the occlusion texture of a material.
Fields§
§texture: Arc<GrayImage>
The occlusion_texture
refers to a texture that defines areas of the
surface that are occluded from light, and thus rendered darker.
factor: f32
The occlusion_factor
is the occlusion strength to be applied to the
texture value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Occlusion
impl RefUnwindSafe for Occlusion
impl Send for Occlusion
impl Sync for Occlusion
impl Unpin for Occlusion
impl UnwindSafe for Occlusion
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