pub struct Fbm<Noise> {
pub noise: Noise,
pub octaves: u32,
pub gain: f32,
pub lacunarity: f32,
pub fractal_bounding: f32,
}
Expand description
Fractal Brownian motion (fBm) noise.
fBm
noise is created by calling the base noise octaves
amount of times with increasing frequency and decreasing amplitude.
Note: This modifier assumes the base noise returns values in the [-1, 1] range.
Fields§
§noise: Noise
§octaves: u32
§gain: f32
§lacunarity: f32
§fractal_bounding: f32
Implementations§
Trait Implementations§
Source§impl<N> Noise for Fbm<N>
impl<N> Noise for Fbm<N>
Source§fn seed(self, seed: i32) -> Seeded<Self>where
Self: Sized,
fn seed(self, seed: i32) -> Seeded<Self>where
Self: Sized,
Sets a seed to be sampled with. Read more
Source§fn frequency(self, frequency: f32) -> Frequency<Self>where
Self: Sized,
fn frequency(self, frequency: f32) -> Frequency<Self>where
Self: Sized,
Modifies a noise with a frequency multiplier. Read more
Source§fn ridged(self) -> Ridged<Self>where
Self: Sized,
fn ridged(self) -> Ridged<Self>where
Self: Sized,
Modifies a noise to create a peak at 0. Read more
Source§fn triangle_wave(self, frequency: f32) -> TriangleWave<Self>where
Self: Sized,
fn triangle_wave(self, frequency: f32) -> TriangleWave<Self>where
Self: Sized,
Applies a triangle wave to the output of a base noise function. Read more
Source§impl<Noise, const DIM: usize, const LANES: usize> Sample<DIM, Simd<f32, LANES>> for Fbm<Noise>
Available on crate feature nightly-simd
only.
impl<Noise, const DIM: usize, const LANES: usize> Sample<DIM, Simd<f32, LANES>> for Fbm<Noise>
Available on crate feature
nightly-simd
only.Source§impl<Noise, const DIM: usize> SampleWithSeed<DIM> for Fbm<Noise>where
Noise: SampleWithSeed<DIM>,
impl<Noise, const DIM: usize> SampleWithSeed<DIM> for Fbm<Noise>where
Noise: SampleWithSeed<DIM>,
Source§impl<Noise, const DIM: usize, const LANES: usize> SampleWithSeed<DIM, Simd<f32, LANES>> for Fbm<Noise>
Available on crate feature nightly-simd
only.
impl<Noise, const DIM: usize, const LANES: usize> SampleWithSeed<DIM, Simd<f32, LANES>> for Fbm<Noise>
Available on crate feature
nightly-simd
only.impl<Noise: Copy> Copy for Fbm<Noise>
impl<Noise> StructuralPartialEq for Fbm<Noise>
Auto Trait Implementations§
impl<Noise> Freeze for Fbm<Noise>where
Noise: Freeze,
impl<Noise> RefUnwindSafe for Fbm<Noise>where
Noise: RefUnwindSafe,
impl<Noise> Send for Fbm<Noise>where
Noise: Send,
impl<Noise> Sync for Fbm<Noise>where
Noise: Sync,
impl<Noise> Unpin for Fbm<Noise>where
Noise: Unpin,
impl<Noise> UnwindSafe for Fbm<Noise>where
Noise: UnwindSafe,
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