All changes made for 10th part of tutorial

voxel_engine.cpp - changed structure, added character controls, physics
almost all files are modified (including shaders)
+ new source directory - physics
This commit is contained in:
MihailRis
2021-08-04 01:45:04 +03:00
committed by GitHub
parent e1cdcf01e9
commit 1a00a11917
22 changed files with 587 additions and 149 deletions
+2
View File
@@ -1,3 +1,4 @@
#include <assert.h>
#include "LightSolver.h"
#include "Lightmap.h"
#include "../voxels/Chunks.h"
@@ -24,6 +25,7 @@ void LightSolver::add(int x, int y, int z, int emission) {
}
void LightSolver::add(int x, int y, int z) {
assert (chunks != nullptr);
add(x,y,z, chunks->getLight(x,y,z, channel));
}