generated from karl/cpp-template
Add toggle-able Wireframe mode
This commit is contained in:
parent
3254144ff3
commit
7a3e5364e0
@ -84,5 +84,5 @@ void MCRenderer::render(float delta) {
|
|||||||
|
|
||||||
// Draw all layers as polygons
|
// Draw all layers as polygons
|
||||||
glDrawArrays(GL_POINTS, 0, size_x * size_y * size_z);
|
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);
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user