pub struct EnvironmentProbeBlend {
pub state_a: ProbeState,
pub state_b: ProbeState,
pub factor: f32,
}Expand description
The caller or source has selected both states and the interpolation factor explicitly. State identifiers and clock/quality selection remain source concerns. A consumer blends sampled linear radiance and decoded irradiance as A + (B - A) * factor. It must preserve both original states when a source program performs this blend itself.
Fields§
§state_a: ProbeState§state_b: ProbeState§factor: f32Finite, inclusive [0,1]. The endpoints still retain both states and their provenance.
Trait Implementations§
Source§impl Clone for EnvironmentProbeBlend
impl Clone for EnvironmentProbeBlend
Source§impl Debug for EnvironmentProbeBlend
impl Debug for EnvironmentProbeBlend
Source§impl PartialEq for EnvironmentProbeBlend
impl PartialEq for EnvironmentProbeBlend
Source§impl Serialize for EnvironmentProbeBlend
impl Serialize for EnvironmentProbeBlend
impl StructuralPartialEq for EnvironmentProbeBlend
Auto Trait Implementations§
impl Forget for EnvironmentProbeBlend
impl Freeze for EnvironmentProbeBlend
impl RefUnwindSafe for EnvironmentProbeBlend
impl Send for EnvironmentProbeBlend
impl Sync for EnvironmentProbeBlend
impl Unpin for EnvironmentProbeBlend
impl UnsafeUnpin for EnvironmentProbeBlend
impl UnwindSafe for EnvironmentProbeBlend
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