feat: add gravity

This commit is contained in:
2026-03-14 11:48:26 +08:00
parent e51a398abe
commit ec2d3c3c0c
3 changed files with 16 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ void init(GLFWwindow* window) {
glfwGetFramebufferSize(window, &width, &height);
aspect = (float)width / (float)height;
glViewport(0, 0, width, height);
p_mat = glm::perspective(glm::radians(60.0f), aspect, 0.1f, 1000.0f);
p_mat = glm::perspective(glm::radians(FOV), aspect, 0.1f, 1000.0f);
glEnable(GL_DEPTH_TEST);
glDepthFunc(GL_LEQUAL);