tweak max origin distance to avoid z-fighting at relatively high coordinates.

remove unnecessary state changes.
This commit is contained in:
JozsefA 2021-02-19 15:00:28 -08:00
parent afe2c4497d
commit e84c6d3abe
2 changed files with 1 additions and 6 deletions

View File

@ -18,7 +18,7 @@ import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.math.BlockPos;
public class KineticRenderer extends InstancedTileRenderer<BasicProgram> {
public static int MAX_ORIGIN_DISTANCE = 1000;
public static int MAX_ORIGIN_DISTANCE = 100;
public BlockPos originCoordinate = BlockPos.ZERO;

View File

@ -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();
}