Fix dumb mistake + change a bit of stuff

This commit is contained in:
TomTheFurry
2022-04-15 18:46:38 +08:00
parent 892570a442
commit 1cb27f2f78
3 changed files with 5 additions and 6 deletions
@@ -228,10 +228,10 @@ public class BufferQuad
otherParallelCompareWidth = quad.widthEastWest;
}
// TEMP: Hard limit for width
if (thisPerpendicularCompareWidth >= 8) return false;
if (Math.floorDiv(otherPerpendicularCompareStartPos, 8)
!= Math.floorDiv(thisPerpendicularCompareStartPos, 8)) return false;
// FIXME: TEMP: Hard limit for width
if (thisPerpendicularCompareWidth >= 16) return false;
if (Math.floorDiv(otherPerpendicularCompareStartPos, 16)
!= Math.floorDiv(thisPerpendicularCompareStartPos, 16)) return false;
// check if these quads are adjacent
if (thisPerpendicularCompareStartPos + thisPerpendicularCompareWidth < otherPerpendicularCompareStartPos ||
@@ -138,7 +138,7 @@ public class LodRenderProgram extends ShaderProgram {
vanillaDrawDistance += 32; // Give it a 2 chunk boundary for near fog.
// uniforms
setUniform(combinedMatUniform, combinedMatrix);
setUniform(mircoOffsetUniform, 0.005f); // 0.005 block offset
setUniform(mircoOffsetUniform, 0.01f); // 0.01 block offset
// setUniform(skyLightUniform, skyLight);
setUniform(lightMapUniform, lightmapBindPoint);
@@ -115,7 +115,6 @@ public class QuadElementBuffer extends GLElementBuffer {
bind();
super.uploadBuffer(buffer, GpuUploadMethod.DATA,
indicesCount * GLEnums.getTypeSize(type), GL32.GL_STATIC_DRAW);
super.unmapBuffer();
} else {
bind();
super.uploadBuffer(buffer, GpuUploadMethod.BUFFER_STORAGE,