summaryrefslogtreecommitdiffstats
path: root/source/Generating/Noise3DGenerator.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-27 18:41:20 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-04-27 18:41:20 +0200
commitf34cbb9e76a22da57a9bc9a8e7d7d7cb36b5d0f0 (patch)
tree718a1784865063932f8e0676feac2afa4739b80b /source/Generating/Noise3DGenerator.h
parentNoise3D: Shifted to normal groundlevel, added water on sealevel (diff)
downloadcuberite-f34cbb9e76a22da57a9bc9a8e7d7d7cb36b5d0f0.tar
cuberite-f34cbb9e76a22da57a9bc9a8e7d7d7cb36b5d0f0.tar.gz
cuberite-f34cbb9e76a22da57a9bc9a8e7d7d7cb36b5d0f0.tar.bz2
cuberite-f34cbb9e76a22da57a9bc9a8e7d7d7cb36b5d0f0.tar.lz
cuberite-f34cbb9e76a22da57a9bc9a8e7d7d7cb36b5d0f0.tar.xz
cuberite-f34cbb9e76a22da57a9bc9a8e7d7d7cb36b5d0f0.tar.zst
cuberite-f34cbb9e76a22da57a9bc9a8e7d7d7cb36b5d0f0.zip
Diffstat (limited to 'source/Generating/Noise3DGenerator.h')
-rw-r--r--source/Generating/Noise3DGenerator.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/source/Generating/Noise3DGenerator.h b/source/Generating/Noise3DGenerator.h
index 3a6b6dff4..44f4f3fce 100644
--- a/source/Generating/Noise3DGenerator.h
+++ b/source/Generating/Noise3DGenerator.h
@@ -32,6 +32,24 @@ public:
protected:
cNoise m_Noise1;
cNoise m_Noise2;
+ cNoise m_Noise3;
+
+ int m_SeaLevel;
+ NOISE_DATATYPE m_HeightAmplification;
+ NOISE_DATATYPE m_MidPoint; // Where the vertical "center" of the noise should be
+ NOISE_DATATYPE m_FrequencyX;
+ NOISE_DATATYPE m_FrequencyY;
+ NOISE_DATATYPE m_FrequencyZ;
+ NOISE_DATATYPE m_AirThreshold;
+
+ /// Generates the 3D noise array used for terrain generation
+ void GenerateNoiseArray(int a_ChunkX, int a_ChunkZ, NOISE_DATATYPE * a_Noise);
+
+ /// Updates heightmap based on the chunk's contents
+ void UpdateHeightmap(cChunkDesc & a_ChunkDesc);
+
+ /// Composes terrain - adds dirt, grass and sand
+ void ComposeTerrain(cChunkDesc & a_ChunkDesc);
} ;