File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,21 @@ namespace Utility
1212 {
1313 struct Params
1414 {
15- uint8_t octaves = 7u ; // number of noise layers
16- float scale = 375 .f; // world-to-noise scale
17- float persistence = 1 .3f ; // amplitude falloff per octave
18- float lacunarity = 2 .3f ; // frequency multiplier per octave
19- float exponentiation = 8 .5f ; // curve‑shaping exponent
20- float height = 2048 .f; // final amplitude multiplier
15+ uint8_t octaves;
16+ float scale;
17+ float persistence;
18+ float lacunarity;
19+ float exponentiation;
20+ float height;
21+
22+ Params ()
23+ : octaves (7u )
24+ , scale (375 .f)
25+ , persistence (1 .3f )
26+ , lacunarity (2 .3f )
27+ , exponentiation (8 .5f )
28+ , height (2048 .f)
29+ {}
2130 };
2231
2332 static float Get (float x, float y, const Params& params = Params{})
You can’t perform that action at this time.
0 commit comments