Fixed the camera movement so it now take into account sub-voxel movement

Also fixed the distortion around the XY axes
This commit is contained in:
MitchellHansen
2016-09-23 14:08:01 -07:00
parent fe0fbc04e1
commit 1620f40d02
5 changed files with 29 additions and 22 deletions

View File

@@ -198,7 +198,10 @@ public:
if (height_map[x + y * dim.x] > 0) {
int z = height_map[x + y * dim.x];
list[x + dim.x * (y + dim.z * z)] = 5;
while (z > 0){
list[x + dim.x * (y + dim.z * z)] = 5;
z--;
}
}
}