aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/neodymium/renderer/MeshQuad.java
diff options
context:
space:
mode:
authormakamys <makamys@outlook.com>2022-06-25 17:30:14 +0200
committermakamys <makamys@outlook.com>2022-06-25 17:31:39 +0200
commit993ae21251face5a7de2e6647f1fdb7682d7a19b (patch)
treec9690dd9ea8d0e98e949bfef27246a9746c759a1 /src/main/java/makamys/neodymium/renderer/MeshQuad.java
parent7e78f2ebcc2428d21d1c7549d5b5949c36c6682b (diff)
downloadNeodymium-993ae21251face5a7de2e6647f1fdb7682d7a19b.tar.gz
Neodymium-993ae21251face5a7de2e6647f1fdb7682d7a19b.tar.bz2
Neodymium-993ae21251face5a7de2e6647f1fdb7682d7a19b.zip
Implement OF Fast Render compat properly
Fixes chunks disappearing when you go beyond max(abs(XZ))>2000
Diffstat (limited to 'src/main/java/makamys/neodymium/renderer/MeshQuad.java')
-rw-r--r--src/main/java/makamys/neodymium/renderer/MeshQuad.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/MeshQuad.java b/src/main/java/makamys/neodymium/renderer/MeshQuad.java
index 71daf1a..d33bc75 100644
--- a/src/main/java/makamys/neodymium/renderer/MeshQuad.java
+++ b/src/main/java/makamys/neodymium/renderer/MeshQuad.java
@@ -66,7 +66,7 @@ public class MeshQuad {
private static Vector3f vectorB = new Vector3f();
private static Vector3f vectorC = new Vector3f();
- private void read(int[] rawBuffer, int offset, int offsetX, int offsetY, int offsetZ) {
+ private void read(int[] rawBuffer, int offset, float offsetX, float offsetY, float offsetZ) {
for(int vi = 0; vi < 4; vi++) {
int i = offset + vi * 8;
@@ -84,7 +84,7 @@ public class MeshQuad {
}
}
- public void setState(int[] rawBuffer, int offset, ChunkMesh.Flags flags, int offsetX, int offsetY, int offsetZ) {
+ public void setState(int[] rawBuffer, int offset, ChunkMesh.Flags flags, float offsetX, float offsetY, float offsetZ) {
resetState();
read(rawBuffer, offset, offsetX, offsetY, offsetZ);