GRK_Project/cw 9/HeightGenerator.h
2023-02-09 14:18:46 +01:00

12 lines
283 B
C++

#pragma once
class HeightGenerator
{
public:
float generateHeight(int x, int z);
static const int SEED;
private:
float getInterpolatedNoise(float x, float z);
float getSmoothNoise(int x, int z);
float interpolate(float a, float b, float blend);
float getNoise(int x, int z);
};