12 lines
283 B
C++
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);
|
|
}; |