Fix a few truncation and off by 1 errors
This commit is contained in:
@@ -159,9 +159,10 @@ public class LodBufferBuilder
|
||||
|
||||
// set where this square will be drawn in the world
|
||||
double xOffset = (LodChunk.WIDTH * i) + // offset by the number of LOD blocks
|
||||
startX; // offset so the center LOD block is centered underneath the player
|
||||
startX + // offset so the center LOD block is centered underneath the player
|
||||
2; // truncation(?) correction
|
||||
double yOffset = 0;
|
||||
double zOffset = (LodChunk.WIDTH * j) + startZ;
|
||||
double zOffset = (LodChunk.WIDTH * j) + startZ + 2;
|
||||
|
||||
LodChunk lod = lodDim.getLodFromCoordinates(chunkX, chunkZ);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user