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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user