Struct simdnoise::FractalSettings [−][src]
pub struct FractalSettings { pub freq: f32, pub lacunarity: f32, pub gain: f32, pub octaves: u8, pub noise_type: NoiseType, }
Contains parameters for noise functions. When using
Normal
noise, only frequency is used.
Fields
freq: f32
Higher frequency will appear to 'zoom' out, lower will appear to 'zoom' in. A good starting value for experimentation is around 0.05
lacunarity: f32
Lacunarity affects how the octaves are layered together. A good starting value to experiment with is 0.5, change from there in 0.25 increments to see what it looks like.
gain: f32
Gain affects how the octaves are layered together. A good starting value is 2.0
octaves: u8
Specifies how many layers of nose to combine. More octaves can yeild more detail and will increase runtime linearlly.
noise_type: NoiseType
The type of noise to generate.
Trait Implementations
impl Copy for FractalSettings
[src]
impl Copy for FractalSettings
impl Clone for FractalSettings
[src]
impl Clone for FractalSettings
fn clone(&self) -> FractalSettings
[src]
fn clone(&self) -> FractalSettings
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for FractalSettings
impl Send for FractalSettings
impl Sync for FractalSettings
impl Sync for FractalSettings