#[repr(C)]pub struct ProbeSet {
pub count: u32,
pub _pad: [u32; 3],
pub probes: [ProbeUniforms; 8],
}Expand description
The full set of reflection probes. count is how many of probes are live;
the fragment shader blends every probe whose influence box covers the surface
(a partition-of-unity weight by signed box distance), falling back to the
nearest when the surface is outside all boxes, and samples those slices of
the probe cube array. Slices beyond count hold the sky fallback cube and a
DISABLED box.
Fields§
§count: u32Live entries in probes.
_pad: [u32; 3]Padding so the field layout matches the shader-side struct. Padding so the field layout matches the shader-side struct.
probes: [ProbeUniforms; 8]Probe entries; the first count are live.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProbeSet
impl RefUnwindSafe for ProbeSet
impl Send for ProbeSet
impl Sync for ProbeSet
impl Unpin for ProbeSet
impl UnsafeUnpin for ProbeSet
impl UnwindSafe for ProbeSet
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