Skip to content

Commit

Permalink
Fix a bug in the scalar version of Terrain_FBM2D
Browse files Browse the repository at this point in the history
  • Loading branch information
scallyw4g committed Sep 17, 2024
1 parent d5c76ae commit d999d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/world_chunk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -725,7 +725,7 @@ Terrain_FBM2D( world_chunk *Chunk,
s32 InteriorAmp = Amplitude;
for (u32 OctaveIndex = 0; OctaveIndex < Octaves; ++OctaveIndex)
{
NoiseValue = PerlinNoise(NoiseInput/IPeriod) * InteriorAmp;
NoiseValue += PerlinNoise(NoiseInput/IPeriod) * InteriorAmp;

InteriorAmp = Max(1, InteriorAmp/2);
IPeriod = Max(V3(1.f), IPeriod/2);
Expand Down

0 comments on commit d999d45

Please sign in to comment.