fix no chunk bug

This commit is contained in:
onezplpl 2024-07-14 09:27:46 -04:00
parent e21945fe23
commit 4b4a2a056a
No known key found for this signature in database
GPG key ID: 7EC026A136F9EEC3
3 changed files with 9 additions and 9 deletions

6
main.c
View file

@ -115,8 +115,8 @@ int main(void) {
Vertex *cube = malloc(CTRI_ALL);
Vertex *text = malloc(CTRI_ALL);
int cube_count = gen_cubes(cube, text, 0 / CHUNK_LENGTH, 0 / CHUNK_LENGTH,
0 / CHUNK_LENGTH, 0,1);
int cube_count = gen_cubes(cube, text, 1024 / CHUNK_LENGTH, 64 / CHUNK_LENGTH,
1024 / CHUNK_LENGTH, 0,1);
GLuint vertex_buffer[2];
GLuint vertex_array;
@ -163,7 +163,7 @@ int main(void) {
glfwSetKeyCallback(window, key_callback);
glfwSetCursorPosCallback(window, cursor_position_callback);
vec3 pos = {1024, 0, 1024};
vec3 pos = {1024, 64, 1024};
// int x = 0, y = 25, z = 0;
glfwSetInputMode(window, GLFW_CURSOR, GLFW_CURSOR_DISABLED);