From e66c94680de8c111d20a83b6f1d40d2b837901c4 Mon Sep 17 00:00:00 2001 From: Andrew Lalis Date: Thu, 7 Jul 2022 01:27:50 +0200 Subject: [PATCH] Increased far plane. --- client/src/main/java/nl/andrewl/aos2_client/Client.java | 2 ++ .../main/java/nl/andrewl/aos2_client/render/ChunkRenderer.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client/src/main/java/nl/andrewl/aos2_client/Client.java b/client/src/main/java/nl/andrewl/aos2_client/Client.java index 95504f6..715a169 100644 --- a/client/src/main/java/nl/andrewl/aos2_client/Client.java +++ b/client/src/main/java/nl/andrewl/aos2_client/Client.java @@ -83,6 +83,8 @@ public class Client implements Runnable { if (glfwGetKey(windowHandle, GLFW_KEY_LEFT_SHIFT) == GLFW_PRESS) cam.move(Camera.DOWN); } + communicationHandler.shutdown(); + chunkRenderer.free(); WindowUtils.clearUI(windowHandle); } diff --git a/client/src/main/java/nl/andrewl/aos2_client/render/ChunkRenderer.java b/client/src/main/java/nl/andrewl/aos2_client/render/ChunkRenderer.java index 3839b86..89e90c5 100644 --- a/client/src/main/java/nl/andrewl/aos2_client/render/ChunkRenderer.java +++ b/client/src/main/java/nl/andrewl/aos2_client/render/ChunkRenderer.java @@ -27,7 +27,7 @@ public class ChunkRenderer { private final List chunkMeshes = new ArrayList<>(); public ChunkRenderer(int windowWidth, int windowHeight) { - this.projectionTransform = new Matrix4f().perspective(70, (float) windowWidth / (float) windowHeight, 0.01f, 100.0f); + this.projectionTransform = new Matrix4f().perspective(70, (float) windowWidth / (float) windowHeight, 0.01f, 500.0f); this.shaderProgram = new ShaderProgram.Builder() .withShader("shader/chunk/vertex.glsl", GL_VERTEX_SHADER) .withShader("shader/chunk/fragment.glsl", GL_FRAGMENT_SHADER)