Skip to content

Commit

Permalink
Adjust noise sampling for greater height variance
Browse files Browse the repository at this point in the history
  • Loading branch information
zak-grumbles committed Dec 7, 2022
1 parent 47c250e commit 581a029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generators/perlingenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void PerlinGenerator::MarchCube_(glm::vec3 p) {
p.y + offsets[vert][1] * cell_size_,
p.z + offsets[vert][2] * cell_size_);

cube_values[vert] = noise_.GetNoise(temp.x, temp.z) - temp.y;
cube_values[vert] = noise_.GetNoise(temp.x, temp.z) - (0.5 * temp.y);
}

// edge table index is determined by values at corners
Expand Down

0 comments on commit 581a029

Please sign in to comment.