pub struct Blend<T, Source1, Source2, Control, const DIM: usize>where
Source1: NoiseFn<T, DIM>,
Source2: NoiseFn<T, DIM>,
Control: NoiseFn<T, DIM>,{
pub source1: Source1,
pub source2: Source2,
pub control: Control,
/* private fields */
}
Expand description
Noise function that outputs a weighted blend of the output values from two source functions given the output value supplied by a control function.
This noise function uses linear interpolation to perform the blending operation.
Fields
source1: Source1
Outputs one of the values to blend.
source2: Source2
Outputs one of the values to blend.
control: Control
Determines the weight of the blending operation. Negative values weight
the blend towards the output value from the source1
function. Positive
values weight the blend towards the output value from the source2
function.
Implementations
Trait Implementations
Auto Trait Implementations
impl<T, Source1, Source2, Control, const DIM: usize> RefUnwindSafe for Blend<T, Source1, Source2, Control, DIM>where
Control: RefUnwindSafe,
Source1: RefUnwindSafe,
Source2: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, Source1, Source2, Control, const DIM: usize> Send for Blend<T, Source1, Source2, Control, DIM>where
Control: Send,
Source1: Send,
Source2: Send,
T: Send,
impl<T, Source1, Source2, Control, const DIM: usize> Sync for Blend<T, Source1, Source2, Control, DIM>where
Control: Sync,
Source1: Sync,
Source2: Sync,
T: Sync,
impl<T, Source1, Source2, Control, const DIM: usize> Unpin for Blend<T, Source1, Source2, Control, DIM>where
Control: Unpin,
Source1: Unpin,
Source2: Unpin,
T: Unpin,
impl<T, Source1, Source2, Control, const DIM: usize> UnwindSafe for Blend<T, Source1, Source2, Control, DIM>where
Control: UnwindSafe,
Source1: UnwindSafe,
Source2: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more