aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/makamys/neodymium/renderer/ChunkMesh.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/makamys/neodymium/renderer/ChunkMesh.java')
-rw-r--r--src/main/java/makamys/neodymium/renderer/ChunkMesh.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/ChunkMesh.java b/src/main/java/makamys/neodymium/renderer/ChunkMesh.java
index f28b390..93d71b3 100644
--- a/src/main/java/makamys/neodymium/renderer/ChunkMesh.java
+++ b/src/main/java/makamys/neodymium/renderer/ChunkMesh.java
@@ -86,10 +86,13 @@ public class ChunkMesh extends Mesh {
LOGGER.error("Error in chunk " + tessellatorToString(t) + ": Unsupported draw mode: " + t.drawMode);
errors = true;
}
- if(!t.hasTexture || !t.hasBrightness || !t.hasColor /*|| t.hasNormals*/) {
+ if(!t.hasTexture || !t.hasBrightness || !t.hasColor) {
LOGGER.error("Error in chunk " + tessellatorToString(t) + ": Unsupported tessellator flags");
errors = true;
}
+ if(t.hasNormals && GL11.glIsEnabled(GL11.GL_LIGHTING)) {
+ LOGGER.warn("Warning in chunk " + tessellatorToString(t) + ": Chunk uses GL lighting, this is not implemented.");
+ }
if(errors) {
LOGGER.error("Skipping chunk due to errors.");
return;
@@ -378,6 +381,6 @@ public class ChunkMesh extends Mesh {
}
}
-
+
}