mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-29 08:27:03 +01:00
tweak max origin distance to avoid z-fighting at relatively high coordinates.
remove unnecessary state changes.
This commit is contained in:
parent
afe2c4497d
commit
e84c6d3abe
2 changed files with 1 additions and 6 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue