Permalink
Browse files

Fix level of detail

  • Loading branch information...
s-macke committed May 5, 2018
1 parent a4bd750 commit 8b1ffe31811e004cc6f697b3b7216feef96913ab
Showing with 3 additions and 3 deletions.
  1. +3 −3 VoxelSpace.html
@@ -386,10 +386,10 @@
for(var i=0; i<screendata.canvas.width|0; i=i+1|0)
hiddeny[i] = screendata.canvas.height;
var dz = 1.;
var deltaz = 1.;
// Draw from front to back
for(var z=1; z<camera.distance; z+=dz)
for(var z=1; z<camera.distance; z+=deltaz)
{
// 90 degree field of view
var plx = -cosang * z - sinang * z;
@@ -411,8 +411,8 @@
plx += dx;
ply += dy;
}
deltaz += 0.005;
}
dz += 0.01;
}

0 comments on commit 8b1ffe3

Please sign in to comment.