diff options
author | makamys <makamys@outlook.com> | 2021-05-07 18:03:29 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2021-05-07 18:04:53 +0200 |
commit | 063ebc49399c840e250d03d4ec4a1ce2f4f4345d (patch) | |
tree | be8cc52de0f8069f94febd4e98eeef58177cede1 /src | |
parent | 47f060337a22042daa65ef9724baf34230e308fa (diff) | |
download | Neodymium-063ebc49399c840e250d03d4ec4a1ce2f4f4345d.tar.gz Neodymium-063ebc49399c840e250d03d4ec4a1ce2f4f4345d.tar.bz2 Neodymium-063ebc49399c840e250d03d4ec4a1ce2f4f4345d.zip |
Disabled culling of dark quads (for now)
I culled them to get rid of caves which shouldn't be part of LODs. But it caused
gaps in geometry in seabeds and cliff overhangs.
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/makamys/lodmod/mixin/MixinTessellator.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/makamys/lodmod/mixin/MixinTessellator.java b/src/main/java/makamys/lodmod/mixin/MixinTessellator.java index 544190d..3624832 100644 --- a/src/main/java/makamys/lodmod/mixin/MixinTessellator.java +++ b/src/main/java/makamys/lodmod/mixin/MixinTessellator.java @@ -74,9 +74,9 @@ abstract class MixinTessellator implements ITessellator { for(int quadI = 0; quadI < this.vertexCount / 4; quadI++) { MeshQuad quad = new MeshQuad(rawBuffer, quadI * 32, new ChunkMesh.Flags(hasTexture, hasBrightness, hasColor, hasNormals)); - if(quad.bUs[0] == quad.bUs[1] && quad.bUs[1] == quad.bUs[2] && quad.bUs[2] == quad.bUs[3] && quad.bUs[3] == quad.bVs[0] && quad.bVs[0] == quad.bVs[1] && quad.bVs[1] == quad.bVs[2] && quad.bVs[2] == quad.bVs[3] && quad.bVs[3] == 0) { + /*if(quad.bUs[0] == quad.bUs[1] && quad.bUs[1] == quad.bUs[2] && quad.bUs[2] == quad.bUs[3] && quad.bUs[3] == quad.bVs[0] && quad.bVs[0] == quad.bVs[1] && quad.bVs[1] == quad.bVs[2] && quad.bVs[2] == quad.bVs[3] && quad.bVs[3] == 0) { quad.deleted = true; - } + }*/ if(quad.plane == quad.PLANE_XZ && !quad.isClockwiseXZ()) { // water hack quad.deleted = true; |