From bdd66cf3b83452119d61e38d6ceefe09a1afe1d9 Mon Sep 17 00:00:00 2001 From: hYdos Date: Thu, 27 Feb 2020 06:28:18 +1000 Subject: [PATCH] make stuff more readable --- .../github/halotroop/litecraft/world/World.java | 3 +-- .../ginger/engine/obj/shapes/StaticCube.java | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/github/halotroop/litecraft/world/World.java b/src/main/java/com/github/halotroop/litecraft/world/World.java index e87248a..1156b35 100644 --- a/src/main/java/com/github/halotroop/litecraft/world/World.java +++ b/src/main/java/com/github/halotroop/litecraft/world/World.java @@ -83,8 +83,7 @@ public class World implements BlockAccess, WorldGenConstants //used for model combining and culling public Chunk optimiseChunk(Chunk chunk) { - //TODO: use this - return null; + return chunk; } public void render(ObjectRenderer entityRenderer) diff --git a/src/main/java/com/github/hydos/ginger/engine/obj/shapes/StaticCube.java b/src/main/java/com/github/hydos/ginger/engine/obj/shapes/StaticCube.java index d2fa596..6a68981 100644 --- a/src/main/java/com/github/hydos/ginger/engine/obj/shapes/StaticCube.java +++ b/src/main/java/com/github/hydos/ginger/engine/obj/shapes/StaticCube.java @@ -10,22 +10,32 @@ public class StaticCube -0.5f, -0.5f, -0.5f, 0.5f, -0.5f, -0.5f, 0.5f, 0.5f, -0.5f, + + -0.5f, 0.5f, 0.5f, -0.5f, -0.5f, 0.5f, 0.5f, -0.5f, 0.5f, 0.5f, 0.5f, 0.5f, + + 0.5f, 0.5f, -0.5f, 0.5f, -0.5f, -0.5f, 0.5f, -0.5f, 0.5f, 0.5f, 0.5f, 0.5f, + + -0.5f, 0.5f, -0.5f, -0.5f, -0.5f, -0.5f, -0.5f, -0.5f, 0.5f, -0.5f, 0.5f, 0.5f, + + -0.5f, 0.5f, 0.5f, -0.5f, 0.5f, -0.5f, 0.5f, 0.5f, -0.5f, 0.5f, 0.5f, 0.5f, + + -0.5f, -0.5f, 0.5f, -0.5f, -0.5f, -0.5f, 0.5f, -0.5f, -0.5f, @@ -62,14 +72,19 @@ public class StaticCube { 0, 1, 3, 3, 1, 2, + 4, 5, 7, 7, 5, 6, + 8, 9, 11, 11, 9, 10, + 12, 13, 15, 15, 13, 14, + 16, 17, 19, 19, 17, 18, + 20, 21, 23, 23, 21, 22 };