mirror of
https://github.com/Kbz-8/42_vox.git
synced 2026-01-13 15:43:34 +00:00
adding noise generator base class
This commit is contained in:
6
Application/Noise.cpp
git.filemode.normal_file
6
Application/Noise.cpp
git.filemode.normal_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;
|
||||
}
|
||||
Reference in New Issue
Block a user