1
0

Added TwoHeights shape generator.

This is a faster shape generator that can generate overhangs and has biome awareness.
This commit is contained in:
Mattes D
2014-11-23 18:16:20 +01:00
parent 9f4342434b
commit 478bbad5ed
5 changed files with 162 additions and 8 deletions

View File

@@ -9,6 +9,7 @@
#include "DistortedHeightmap.h"
#include "EndGen.h"
#include "Noise3DGenerator.h"
#include "TwoHeights.h"
@@ -121,6 +122,10 @@ cTerrainShapeGenPtr cTerrainShapeGen::CreateShapeGen(cIniFile & a_IniFile, cBiom
{
res = std::make_shared<cNoise3DComposable>(a_Seed);
}
else if (NoCaseCompare(shapeGenName, "TwoHeights") == 0)
{
res = CreateShapeGenTwoHeights(a_Seed, a_BiomeGen);
}
else
{
// No match found, force-set the default and retry