pub struct Occluder { /* private fields */ }Expand description
A ray-traceable geometric surface with an attached material.
Implementations§
Source§impl Occluder
Implements factory constructors for Occluder.
impl Occluder
Implements factory constructors for Occluder.
Sourcepub fn occluder_points(&self) -> Vec<(Vector3D, f64)>
pub fn occluder_points(&self) -> Vec<(Vector3D, f64)>
Returns a list of (center, radius) sphere tuples approximating
this occluder, suitable for soft_shadow_factor.
For sphere occluders this returns (center, radius). For AABB
occluders the bounding sphere is computed conservatively from the
AABB extents.
§Returns
Vec<(Vector3D, f64)>- One bounding sphere per occluder.
Source§impl Occluder
impl Occluder
pub fn get_kind(&self) -> OccluderKind
pub fn get_mut_kind(&mut self) -> &mut OccluderKind
pub fn set_kind(&mut self, val: OccluderKind) -> &mut Self
pub fn get_center(&self) -> Vector3D
pub fn get_mut_center(&mut self) -> &mut Vector3D
pub fn set_center(&mut self, val: Vector3D) -> &mut Self
pub fn get_extent(&self) -> Vector3D
pub fn get_mut_extent(&mut self) -> &mut Vector3D
pub fn set_extent(&mut self, val: Vector3D) -> &mut Self
pub fn get_material(&self) -> &Material
pub fn get_mut_material(&mut self) -> &mut Material
pub fn set_material(&mut self, val: Material) -> &mut Self
Trait Implementations§
impl StructuralPartialEq for Occluder
Auto Trait Implementations§
impl Freeze for Occluder
impl RefUnwindSafe for Occluder
impl Send for Occluder
impl Sync for Occluder
impl Unpin for Occluder
impl UnsafeUnpin for Occluder
impl UnwindSafe for Occluder
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