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 to return 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>
fn seed(self, seed: i32) -> Seeded<Self>where
Self: Sized,
fn frequency(self, frequency: f32) -> Frequency<Self>where
Self: Sized,
fn fbm(self, octaves: u32, gain: f32, lacunarity: f32) -> Fbm<Self>where
Self: Sized,
fn ridged(self) -> Ridged<Self>where
Self: Sized,
fn triangle_wave(self, frequency: f32) -> TriangleWave<Self>where
Self: Sized,
fn tileable(self, width: f32, height: f32) -> Tileable<Self>where
Self: Sized,
fn mul_seed(self, value: i32) -> MulSeed<Self>where
Self: Sized,
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