fractal #1

Merged
Persson-dev merged 21 commits from fractal into main 2025-11-09 15:41:00 +00:00
Showing only changes of commit b5f6e81a7b - Show all commits

View File

@@ -199,6 +199,10 @@ int main() {
glClear(GL_COLOR_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT);
glClearColor(0, 0, 0, 1); glClearColor(0, 0, 0, 1);
int width, height;
glfwGetWindowSize(window, &width, &height);
glViewport(0, 0, width, height);
// float positions[3 * PARTICLE_COUNT]; // float positions[3 * PARTICLE_COUNT];
// glGetBufferSubData(GL_SHADER_STORAGE_BUFFER, 0, sizeof(float) * 3 * PARTICLE_COUNT, positions); // glGetBufferSubData(GL_SHADER_STORAGE_BUFFER, 0, sizeof(float) * 3 * PARTICLE_COUNT, positions);