|
| float | operator() (float x, float y, float ctrl_param=0.f) const |
| | FbmSlopeFunction (BaseFn base, int octaves, float weight, float persistence, float lacunarity, float gradient_scale, float slope_power, float octave_blend, float bias_angle=0.f, float bias_strength=0.f) |
| | Construct a new Fbm Slope Function object.
|
| void | set_bias (float new_bias_angle, float new_bias_strength) |
| | Set the directional bias.
|
| void | set_gradient_scale (float new_gradient_scale) |
| | Set the gradient scale.
|
| void | set_slope_power (float new_slope_power) |
| | Set the slope power.
|
| void | set_octave_blend (float new_octave_blend) |
| | Set the octave blend rate.
|
| | GenericFractalFunction (BaseFn base, int octaves, float weight, float persistence, float lacunarity) |
| | Construct a new GenericFractalFunction object.
|
| void | set_kw (glm::vec2 new_kw) |
| | Set the frequency scaling vector.
|
| void | set_lacunarity (float new_lacunarity) |
| | Set the lacunarity of the fractal noise.
|
| void | set_octaves (int new_octaves) |
| | Set the number of octaves in the fractal noise.
|
| void | set_persistence (float new_persistence) |
| | Set the persistence of the fractal noise.
|
| void | set_seed (std::uint32_t new_seed) |
| | Set a new random seed for the noise generation.
|
| void | scale_amp0 (float scale) |
| | Scale the initial amplitude of the fractal noise.
|
| void | set_stretch (float new_angle, float new_stretch, float new_stretch_decay=0.f) |
| | Configure directional stretching for the fractal noise.
|
| float | get_lacunarity () const |
| | Get the lacunarity of the fractal noise.
|
| int | get_octaves () const |
| | Get the number of octaves in the fractal noise.
|
| float | get_persistence () const |
| | Get the persistence of the fractal noise.
|
| float | get_weight () const |
| | Get the weight of the fractal noise.
|
| | NoiseFunction () |
| | Default constructor. Initializes with default frequency scaling and seed.
|
| | NoiseFunction (glm::vec2 kw) |
| | Constructor to initialize with specific frequency scaling.
|
| | NoiseFunction (glm::vec2 kw, std::uint32_t seed) |
| | Constructor to initialize with specific frequency scaling and seed.
|
| glm::vec2 | get_kw () const |
| | Get the frequency scaling vector.
|
| std::uint32_t | get_seed () const |
| | Get the random seed.
|
| void | set_seed (std::uint32_t new_seed) |
| | Set a new random seed for noise generation.
|
| void | set_kw (glm::vec2 new_kw) |
| | Set a new frequency scaling vector.
|
|
| float | gradient_scale |
| | Gradient scale influence.
|
| float | slope_power |
| | Exponent controlling slope transition sharpness.
|
| float | octave_blend |
| | Rate at which higher octaves become slope-masked.
|
| float | bias_angle = 0.f |
| | Preferred slope direction angle in degrees.
|
| float | bias_strength = 0.f |
| | Directional bias strength in [0, 1].
|
| float | bias_cos = 1.f |
| | Cosine of directional bias angle.
|
| float | bias_sin = 0.f |
| | Sine of directional bias angle.
|
| BaseFn | base |
| | Unique pointer to the base noise function.
|
| int | octaves |
| | Number of octaves in the fractal noise.
|
| float | weight |
| | Weight of the base noise function.
|
| float | persistence |
| | Persistence of the fractal noise.
|
| float | lacunarity |
| | Lacunarity of the fractal noise.
|
| float | amp0 |
| | Initial amplitude of the fractal noise.
|
| float | angle = 0.f |
| | Direction angle in degrees.
|
| float | stretch = 1.f |
| | Stretching factor along the direction.
|
| float | stretch_decay = 0.f |
| | Stretching decay across octaves.
|
| float | cos_a = 1.f |
| | Cosine of direction angle.
|
| float | sin_a = 0.f |
| | Sine of direction angle.
|
| glm::vec2 | kw |
| | Frequency scaling vector.
|
| std::uint32_t | seed |
| | Random seed for noise generation.
|
template<typename BaseFn>
class hmap::FbmSlopeFunction< BaseFn >
Slope-weighted FBM layering function class.
Modulates higher-octave amplitude by the accumulated low-frequency gradient norm so that flat areas remain smooth while steep slopes develop rugosity.