Add worldgen sources

This commit is contained in:
chelsea
2025-12-01 17:00:57 -06:00
parent 4978bb981a
commit 4431b86dab
10 changed files with 1519 additions and 0 deletions

14
include/noise.h Normal file
View File

@@ -0,0 +1,14 @@
#ifndef WORLDGEN_NOISE_H
#define WORLDGEN_NOISE_H
#include <stdint.h>
typedef struct {
int perm[512];
} simplex_noise;
void simplex_init(simplex_noise *noise, uint32_t seed);
double simplex_noise2(simplex_noise *noise, double x, double y);
double simplex_noise3(simplex_noise *noise, double x, double y, double z);
#endif