Add toggle-able Wireframe mode

This commit is contained in:
karl 2021-03-21 20:37:32 +01:00
parent 3254144ff3
commit 7a3e5364e0

View File

@ -84,5 +84,5 @@ void MCRenderer::render(float delta) {
// Draw all layers as polygons
glDrawArrays(GL_POINTS, 0, size_x * size_y * size_z);
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
glPolygonMode(GL_FRONT_AND_BACK, Input::is_key_down(GLFW_KEY_X) ? GL_LINE : GL_FILL);
}