diff options
author | makamys <makamys@outlook.com> | 2022-06-10 15:05:10 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2022-06-10 19:21:00 +0200 |
commit | b152483006b8a61e02510de50eba4dc9dc85ab81 (patch) | |
tree | f4142e1a86951668a44d652a283e2839e4816e2d /src/main/java/makamys/neodymium/renderer | |
parent | 78eb588a19fee4e453f57fe8b4fcb29f2fc6f9bf (diff) | |
download | Neodymium-b152483006b8a61e02510de50eba4dc9dc85ab81.tar.gz Neodymium-b152483006b8a61e02510de50eba4dc9dc85ab81.tar.bz2 Neodymium-b152483006b8a61e02510de50eba4dc9dc85ab81.zip |
Make wireframe a config option
Diffstat (limited to 'src/main/java/makamys/neodymium/renderer')
-rw-r--r-- | src/main/java/makamys/neodymium/renderer/NeoRenderer.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/main/java/makamys/neodymium/renderer/NeoRenderer.java b/src/main/java/makamys/neodymium/renderer/NeoRenderer.java index 8cc32f5..e5bc886 100644 --- a/src/main/java/makamys/neodymium/renderer/NeoRenderer.java +++ b/src/main/java/makamys/neodymium/renderer/NeoRenderer.java @@ -393,9 +393,13 @@ public class NeoRenderer { glBindVertexArray(VAO); GL11.glDisable(GL11.GL_BLEND); - //GL11.glPolygonMode(GL11.GL_FRONT_AND_BACK, GL11.GL_LINE); + if(Config.wireframe) { + GL11.glPolygonMode(GL11.GL_FRONT_AND_BACK, GL11.GL_LINE); + } glMultiDrawArrays(GL_TRIANGLES, piFirst[0], piCount[0]); - //GL11.glPolygonMode(GL11.GL_FRONT_AND_BACK, GL11.GL_FILL); + if(Config.wireframe) { + GL11.glPolygonMode(GL11.GL_FRONT_AND_BACK, GL11.GL_FILL); + } GL11.glEnable(GL11.GL_BLEND); GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA); //glMultiDrawArrays(GL_TRIANGLES, piFirst[1], piCount[1]); |