pub struct CellularProperties {
pub return_type: CellularReturnType,
pub return_func: CellularDistanceFn,
pub distance2_index0: i32,
pub distance2_index1: i32,
pub jitter: f32,
pub noise_lookup_type: NoiseType,
pub noise_lookup_freq: f32,
}Fields§
§return_type: CellularReturnTypeDefault: Distance; Return type from cellular noise calculations.
return_func: CellularDistanceFnDefault: Euclidean; Distance function used in cellular noise calculations.
distance2_index0: i32Default: 0; Should be lower than distance2_index1 and < 4 && >= 0.
distance2_index1: i32Default: 1; Should be greater than distance2_index0 and >= 0.
jitter: f32Default: 0.45; Sets the maximum distance a cellular point can move from it’s grid position. Setting this high will make artifacts more common.
noise_lookup_type: NoiseTypeDefault: Simplex; The type of noise used if cellular return type is set the NoiseLookup.
noise_lookup_freq: f32Default: 0.2; Relative frequency on the cellular noise lookup return type.
Trait Implementations§
Source§impl Clone for CellularProperties
impl Clone for CellularProperties
Source§fn clone(&self) -> CellularProperties
fn clone(&self) -> CellularProperties
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CellularProperties
impl Debug for CellularProperties
Source§impl Default for CellularProperties
impl Default for CellularProperties
Source§impl PartialEq for CellularProperties
impl PartialEq for CellularProperties
impl StructuralPartialEq for CellularProperties
Auto Trait Implementations§
impl Freeze for CellularProperties
impl RefUnwindSafe for CellularProperties
impl Send for CellularProperties
impl Sync for CellularProperties
impl Unpin for CellularProperties
impl UnwindSafe for CellularProperties
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