pub struct Weighted<Fractal> {
pub fractal: Fractal,
pub strength: f32,
}
Expand description
Modifies a fractal noise to make successive octaves have less impact the lower the output value of the previous one was.
Fields§
§fractal: Fractal
§strength: f32
Implementations§
Trait Implementations§
Source§impl<Fractal> Noise for Weighted<Fractal>
impl<Fractal> Noise for Weighted<Fractal>
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> Sample<DIM> for Weighted<Fbm<Noise>>where
Noise: SampleWithSeed<DIM>,
impl<Noise, const DIM: usize> Sample<DIM> for Weighted<Fbm<Noise>>where
Noise: SampleWithSeed<DIM>,
Source§impl<Noise, const DIM: usize, const LANES: usize> Sample<DIM, Simd<f32, LANES>> for Weighted<Fbm<Noise>>
Available on crate feature nightly-simd
only.
impl<Noise, const DIM: usize, const LANES: usize> Sample<DIM, Simd<f32, LANES>> for Weighted<Fbm<Noise>>
Available on crate feature
nightly-simd
only.Source§impl<Noise, const DIM: usize> SampleWithSeed<DIM> for Weighted<Fbm<Noise>>where
Noise: SampleWithSeed<DIM>,
impl<Noise, const DIM: usize> SampleWithSeed<DIM> for Weighted<Fbm<Noise>>where
Noise: SampleWithSeed<DIM>,
Source§impl<Noise, const DIM: usize, const LANES: usize> SampleWithSeed<DIM, Simd<f32, LANES>> for Weighted<Fbm<Noise>>
Available on crate feature nightly-simd
only.
impl<Noise, const DIM: usize, const LANES: usize> SampleWithSeed<DIM, Simd<f32, LANES>> for Weighted<Fbm<Noise>>
Available on crate feature
nightly-simd
only.impl<Fractal: Copy> Copy for Weighted<Fractal>
impl<Fractal> StructuralPartialEq for Weighted<Fractal>
Auto Trait Implementations§
impl<Fractal> Freeze for Weighted<Fractal>where
Fractal: Freeze,
impl<Fractal> RefUnwindSafe for Weighted<Fractal>where
Fractal: RefUnwindSafe,
impl<Fractal> Send for Weighted<Fractal>where
Fractal: Send,
impl<Fractal> Sync for Weighted<Fractal>where
Fractal: Sync,
impl<Fractal> Unpin for Weighted<Fractal>where
Fractal: Unpin,
impl<Fractal> UnwindSafe for Weighted<Fractal>where
Fractal: 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