Skip to content

Commit 7185234

Browse files
committed
Fixing G++ build.
1 parent 4ec9172 commit 7185234

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

source/Utility/Noise.hpp

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff 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{})

0 commit comments

Comments
 (0)