diff options
author | makamys <makamys@outlook.com> | 2022-06-03 11:21:57 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2022-06-03 12:28:11 +0200 |
commit | 310007e1395cca1a0147c84fd7aa695592285be3 (patch) | |
tree | 987cc3fff4ad3f3ea0c05505d47daa033d5600f1 /src/main | |
parent | d337c7abd2e4fd82325c2c0b3eae0f42cef813a6 (diff) | |
download | Neodymium-310007e1395cca1a0147c84fd7aa695592285be3.tar.gz Neodymium-310007e1395cca1a0147c84fd7aa695592285be3.tar.bz2 Neodymium-310007e1395cca1a0147c84fd7aa695592285be3.zip |
Add optimizeChunkMeshes option
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/makamys/lodmod/LODMod.java | 2 | ||||
-rw-r--r-- | src/main/java/makamys/lodmod/mixin/MixinTessellator.java | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/makamys/lodmod/LODMod.java b/src/main/java/makamys/lodmod/LODMod.java index 97ca822..d2e99ec 100644 --- a/src/main/java/makamys/lodmod/LODMod.java +++ b/src/main/java/makamys/lodmod/LODMod.java @@ -58,6 +58,7 @@ public class LODMod public static boolean hideUnderVanillaChunks; public static boolean disableChunkMeshes; public static boolean disableSimpleMeshes; + public static boolean optimizeChunkMeshes; private File configFile; @@ -98,6 +99,7 @@ public class LODMod hideUnderVanillaChunks = config.getBoolean("hideUnderVanillaChunks", "render", true, ""); disableChunkMeshes = config.getBoolean("disableChunkMeshes", "render", true, ""); disableSimpleMeshes = config.getBoolean("disableSimpleMeshes", "render", false, ""); + optimizeChunkMeshes = config.getBoolean("optimizeChunkMeshes", "render", true, ""); if(config.hasChanged()) { config.save(); diff --git a/src/main/java/makamys/lodmod/mixin/MixinTessellator.java b/src/main/java/makamys/lodmod/mixin/MixinTessellator.java index eea2a31..12eb1ce 100644 --- a/src/main/java/makamys/lodmod/mixin/MixinTessellator.java +++ b/src/main/java/makamys/lodmod/mixin/MixinTessellator.java @@ -83,7 +83,7 @@ abstract class MixinTessellator implements ITessellator { } quads.add(quad); } - boolean optimize = true; + boolean optimize = LODMod.optimizeChunkMeshes; if(optimize) { ArrayList<ArrayList<MeshQuad>> quadsByPlaneDir = new ArrayList<>(); // XY, XZ, YZ for(int i = 0; i < 3; i++) { |