From e84c6d3abe228c6673218e21503ec57081d49d62 Mon Sep 17 00:00:00 2001 From: JozsefA Date: Fri, 19 Feb 2021 15:00:28 -0800 Subject: [PATCH] tweak max origin distance to avoid z-fighting at relatively high coordinates. remove unnecessary state changes. --- .../simibubi/create/foundation/render/KineticRenderer.java | 2 +- .../foundation/render/backend/FastRenderDispatcher.java | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/com/simibubi/create/foundation/render/KineticRenderer.java b/src/main/java/com/simibubi/create/foundation/render/KineticRenderer.java index 58e1746f2..8517b7d03 100644 --- a/src/main/java/com/simibubi/create/foundation/render/KineticRenderer.java +++ b/src/main/java/com/simibubi/create/foundation/render/KineticRenderer.java @@ -18,7 +18,7 @@ import net.minecraft.tileentity.TileEntity; import net.minecraft.util.math.BlockPos; public class KineticRenderer extends InstancedTileRenderer { - public static int MAX_ORIGIN_DISTANCE = 1000; + public static int MAX_ORIGIN_DISTANCE = 100; public BlockPos originCoordinate = BlockPos.ZERO; diff --git a/src/main/java/com/simibubi/create/foundation/render/backend/FastRenderDispatcher.java b/src/main/java/com/simibubi/create/foundation/render/backend/FastRenderDispatcher.java index 17f504ab8..7038c4a78 100644 --- a/src/main/java/com/simibubi/create/foundation/render/backend/FastRenderDispatcher.java +++ b/src/main/java/com/simibubi/create/foundation/render/backend/FastRenderDispatcher.java @@ -73,12 +73,7 @@ public class FastRenderDispatcher { layer.startDrawing(); - RenderSystem.enableDepthTest(); - RenderSystem.enableCull(); - GL11.glCullFace(GL11.GL_BACK); CreateClient.kineticRenderer.render(layer, viewProjection, cameraX, cameraY, cameraZ); - RenderSystem.disableCull(); - //RenderSystem.disableDepthTest(); layer.endDrawing(); }