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