adding noise generator base class

This commit is contained in:
Kbz-8
2025-05-21 13:54:33 +02:00
parent 68619be28d
commit 4329e7624e
5 changed files with 30 additions and 4 deletions

6
Application/Noise.cpp git.filemode.normal_file
View File

@@ -0,0 +1,6 @@
#include <Noise.h>
[[nodiscard]] std::uint32_t Noise::GetHeight(Scop::Vec2i pos)
{
return std::abs(std::sin((float)pos.x / 20.0f) * std::cos((float)pos.y / 20.0f) * 60.0f) + 1;
}