Tried out this fractal terrain stuff but it just looks the same i guess?

This commit is contained in:
iDunnoDev
2022-05-30 12:32:44 +01:00
committed by iDunnoDev
parent 51afdeecbd
commit fa57ec29aa
9 changed files with 134 additions and 6 deletions

View File

@ -0,0 +1,18 @@
#pragma once
#include <numeric>
#include "PerlinTerrainNode.h"
class FractalTerrainNode : public PerlinTerrainNode
{
public:
FractalTerrainNode(wstring name, wstring seed, float chunkSize, int widthX = 1023, int widthZ = 1023, float waterHeight = 300.0f, int cellSizeX = 10, int cellSizeZ = 10);
private:
void GenerateSquares(const int k, const int p);
void GenerateDiamonds(const int k, const int p);
void DoSquare(const int row, const int col, const int k, const float offset);
void DoDiamond(const int row, const int col, const int k, const float offset);
};