pub struct ProbePlacement {
pub position: [f32; 3],
pub box_min: [f32; 3],
pub box_max: [f32; 3],
}Expand description
Where one reflection probe is captured from and the influence box it serves.
Backend-agnostic: the renderer bakes a cube at position and, for a surface
inside [box_min, box_max], selects this probe and parallax-corrects against the
box. Derived from a declared ReflectionProbe asset or auto_seed_probes.
Fields§
§position: [f32; 3]World-space position.
box_min: [f32; 3]Lower corner of the probe’s parallax box.
box_max: [f32; 3]Upper corner of the probe’s parallax box.
Implementations§
Source§impl ProbePlacement
impl ProbePlacement
Sourcepub fn from_center_extents(
position: [f32; 3],
half_extents: [f32; 3],
) -> ProbePlacement
pub fn from_center_extents( position: [f32; 3], half_extents: [f32; 3], ) -> ProbePlacement
Build a placement from an authored ReflectionProbe (capture point +
half-extents): the box is position plus or minus half_extents.
Trait Implementations§
Source§impl Clone for ProbePlacement
impl Clone for ProbePlacement
Source§fn clone(&self) -> ProbePlacement
fn clone(&self) -> ProbePlacement
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 moreimpl Copy for ProbePlacement
Source§impl Debug for ProbePlacement
impl Debug for ProbePlacement
Source§impl PartialEq for ProbePlacement
impl PartialEq for ProbePlacement
impl StructuralPartialEq for ProbePlacement
Auto Trait Implementations§
impl Freeze for ProbePlacement
impl RefUnwindSafe for ProbePlacement
impl Send for ProbePlacement
impl Sync for ProbePlacement
impl Unpin for ProbePlacement
impl UnsafeUnpin for ProbePlacement
impl UnwindSafe for ProbePlacement
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