Fixed regions wall not showing (which would cause holes in the rendering) and added border as possible overdraw config

This commit is contained in:
Leonardo
2021-10-21 12:57:40 +02:00
parent e0a176c0c4
commit be024f524d
5 changed files with 14 additions and 8 deletions
@@ -530,12 +530,14 @@ public class LodRenderer
*/
private void setupProjectionMatrix(Matrix4f currentProjectionMatrix, float partialTicks)
{
//Minimum radious of view in 2 render distance
int minDistance = 8;
// create the new projection matrix
Matrix4f lodPoj =
Matrix4f.perspective(
getFov(partialTicks, true),
(float) this.mc.getWindow().getScreenWidth() / (float) this.mc.getWindow().getScreenHeight(),
mc.getRenderDistance() / 2,
minDistance,
farPlaneBlockDistance * LodUtil.CHUNK_WIDTH / 2);
// get Minecraft's un-edited projection matrix