mouse and camera movement work, stress testing. Can actually handle an

impressive amount of resolution and voxel space for 0 optimization!
This commit is contained in:
MitchellHansen
2016-09-03 21:13:03 -07:00
parent f487895f9f
commit 160756186d
3 changed files with 63 additions and 50 deletions

View File

@@ -15,7 +15,11 @@ public:
for (int x = 0; x < dim.x; x++) {
for (int y = 0; y < dim.y; y++) {
for (int z = 0; z < dim.z; z++) {
if (rand() % 100 < 1)
if (dim.z < 30) {
list[x + dim.x * (y + dim.z * z)] = 3;
}
else if (rand() % 1000 < 1)
list[x + dim.x * (y + dim.z * z)] = rand() % 6;
else
list[x + dim.x * (y + dim.z * z)] = 0;