This commit is contained in:
lllzebralll
2022-06-08 16:19:25 +03:00
parent 58ef13e402
commit 8cc5bdf0b1
2 changed files with 14 additions and 6 deletions
+5 -1
View File
@@ -296,6 +296,7 @@ int main() {
long frame = 0;
bool occlusion = false;
bool devdata = false;
glfwSwapInterval(1);
@@ -311,6 +312,9 @@ int main() {
if (Events::jpressed(GLFW_KEY_O)){
occlusion = !occlusion;
}
if (Events::jpressed(GLFW_KEY_F3)){
devdata = !devdata;
}
update_controls(&physics, chunks, player, delta);
update_interaction(chunks, &physics, player, &lighting);
@@ -322,7 +326,7 @@ int main() {
for (int i = 0; i < freeLoaders; i++)
chunksController.loadVisible(wfile);
draw_world(camera, assets, chunks, occlusion);
draw_world(camera, assets, chunks, occlusion, devdata);
Window::swapBuffers();
Events::pullEvents();