overhaul worldgen

This commit is contained in:
p2r3
2025-08-16 16:15:33 +03:00
parent d36416cd2b
commit 7a3e2b5fa2
5 changed files with 126 additions and 51 deletions

View File

@@ -3,7 +3,12 @@
#include <stdint.h>
// For best performance, chunk_size should be a power of 2
#define chunk_size 8
// Terrain low point - should start a bit below sea level for rivers/lakes
#define terrain_base_height 60
// Center point of cave generation
#define cave_base_depth 24
uint32_t getChunkHash (short x, short z);
int getHeightAt (int rx, int rz, int _x, int _z, uint32_t chunk_hash);