This commit is contained in:
MihailRis
2024-05-06 03:15:27 +03:00
parent 91aacafecb
commit f27a418dbe
81 changed files with 310 additions and 302 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
#include "Block.h"
#include "../core_defs.h"
#include "../util/stringutil.h"
#include "../core_defs.hpp"
#include "../util/stringutil.hpp"
CoordSystem::CoordSystem(glm::ivec3 axisX, glm::ivec3 axisY, glm::ivec3 axisZ)
: axisX(axisX), axisY(axisY), axisZ(axisZ)
+1 -1
View File
@@ -3,7 +3,7 @@
#include "voxel.h"
#include "../items/Inventory.h"
#include "../content/ContentLUT.h"
#include "../content/ContentLUT.hpp"
#include "../lighting/Lightmap.h"
Chunk::Chunk(int xpos, int zpos) : x(xpos), z(zpos){
+8 -7
View File
@@ -3,6 +3,14 @@
#include "Chunk.h"
#include "Block.h"
#define FNL_IMPL
#include "../maths/FastNoiseLite.h"
#include "../content/Content.h"
#include "../maths/voxmaths.h"
#include "../maths/util.h"
#include "../core_defs.hpp"
#include <iostream>
#include <vector>
#include <time.h>
@@ -10,13 +18,6 @@
#include <math.h>
#include <glm/glm.hpp>
#include <glm/gtc/noise.hpp>
#define FNL_IMPL
#include "../maths/FastNoiseLite.h"
#include "../content/Content.h"
#include "../maths/voxmaths.h"
#include "../maths/util.h"
#include "../core_defs.h"
// will be refactored in generators update
+2 -2
View File
@@ -3,7 +3,7 @@
#include "Chunk.h"
#include "../content/Content.h"
#include "../core_defs.h"
#include "../core_defs.hpp"
void FlatWorldGenerator::generate(voxel* voxels, int cx, int cz, int seed) {
for (int z = 0; z < CHUNK_D; z++) {
@@ -25,4 +25,4 @@ void FlatWorldGenerator::generate(voxel* voxels, int cx, int cz, int seed) {
}
}
}
}
}