diff --git a/src/main/java/com/seibel/lod/builders/lodTemplates/AbstractLodTemplate.java b/src/main/java/com/seibel/lod/builders/lodTemplates/AbstractLodTemplate.java index 185dc8740..73d7e2e2d 100644 --- a/src/main/java/com/seibel/lod/builders/lodTemplates/AbstractLodTemplate.java +++ b/src/main/java/com/seibel/lod/builders/lodTemplates/AbstractLodTemplate.java @@ -19,7 +19,6 @@ package com.seibel.lod.builders.lodTemplates; import com.seibel.lod.enums.DebugMode; -import com.seibel.lod.enums.DistanceGenerationMode; import net.minecraft.client.renderer.BufferBuilder; import net.minecraft.util.Direction; import net.minecraft.util.math.BlockPos; @@ -34,16 +33,10 @@ import net.minecraft.util.math.BlockPos; public abstract class AbstractLodTemplate { - private Direction direction; public abstract void addLodToBuffer(BufferBuilder buffer, BlockPos bufferCenterBlockPos, long data, long[] adjData, byte detailLevel, int posX, int posZ, Box box, DebugMode debugging); - - protected void setDirection(Direction direction){ - this.direction = direction; - } - /** * add the given position and color to the buffer */ @@ -51,8 +44,8 @@ public abstract class AbstractLodTemplate double x, double y, double z, int red, int green, int blue, int alpha) { - //buffer.vertex(x, y, z).color(red, green, blue, alpha).normal(direction.getNormal().getX(), direction.getNormal().getY(), direction.getNormal().getZ()).endVertex(); - buffer.vertex(x, y, z).color(red, green, blue, alpha).normal(direction.getNormal().getX(), direction.getNormal().getY(), direction.getNormal().getZ()).endVertex(); + + buffer.vertex(x, y, z).color(red, green, blue, alpha).endVertex(); } /** diff --git a/src/main/java/com/seibel/lod/builders/lodTemplates/CubicLodTemplate.java b/src/main/java/com/seibel/lod/builders/lodTemplates/CubicLodTemplate.java index 17811fe72..3aa000667 100644 --- a/src/main/java/com/seibel/lod/builders/lodTemplates/CubicLodTemplate.java +++ b/src/main/java/com/seibel/lod/builders/lodTemplates/CubicLodTemplate.java @@ -172,7 +172,6 @@ public class CubicLodTemplate extends AbstractLodTemplate maxY = box.getMaxY(); minZ = box.getMinZ(); maxZ = box.getMaxZ(); - setDirection(Direction.UP); addPosAndColor(buffer, minX, maxY, minZ, red, green, blue, alpha); addPosAndColor(buffer, minX, maxY, maxZ, red, green, blue, alpha); addPosAndColor(buffer, maxX, maxY, maxZ, red, green, blue, alpha); @@ -191,7 +190,6 @@ public class CubicLodTemplate extends AbstractLodTemplate maxY = box.getMaxY(); minZ = box.getMinZ(); maxZ = box.getMaxZ(); - setDirection(Direction.DOWN); addPosAndColor(buffer, maxX, minY, minZ, red, green, blue, alpha); addPosAndColor(buffer, maxX, minY, maxZ, red, green, blue, alpha); addPosAndColor(buffer, minX, minY, maxZ, red, green, blue, alpha); @@ -213,7 +211,6 @@ public class CubicLodTemplate extends AbstractLodTemplate maxY = box.getMaxY(); minZ = box.getMinZ(); maxZ = box.getMaxZ(); - setDirection(Direction.WEST); if (data == 0) { addPosAndColor(buffer, minX, minY, minZ, red, green, blue, alpha); @@ -259,7 +256,6 @@ public class CubicLodTemplate extends AbstractLodTemplate maxY = box.getMaxY(); minZ = box.getMinZ(); maxZ = box.getMaxZ(); - setDirection(Direction.EAST); if (data == 0) { addPosAndColor(buffer, maxX, maxY, minZ, red, green, blue, alpha); @@ -306,7 +302,6 @@ public class CubicLodTemplate extends AbstractLodTemplate minZ = box.getMinZ(); maxZ = box.getMaxZ(); // north (facing +Z) - setDirection(Direction.NORTH); if (data == 0) { addPosAndColor(buffer, maxX, minY, maxZ, red, green, blue, alpha); @@ -353,7 +348,6 @@ public class CubicLodTemplate extends AbstractLodTemplate minZ = box.getMinZ(); maxZ = box.getMaxZ(); // south (facing -Z) - setDirection(Direction.SOUTH); if (data == 0) { addPosAndColor(buffer, minX, minY, minZ, red, green, blue, alpha);