+ | Better code

This commit is contained in:
TheRedShip
2025-01-03 00:22:58 +01:00
parent 1c619b76d1
commit f973d77654
10 changed files with 3090 additions and 10 deletions

View File

@ -19,7 +19,7 @@ int main(int argc, char **argv)
if (argc > 1 && !scene.parseScene(argv[1]))
return (1);
Window window(&scene, WIDTH, HEIGHT, "RT_GPU", 1);
Window window(&scene, WIDTH, HEIGHT, "RT_GPU", 0);
Shader shader("shaders/vertex.vert", "shaders/frag.frag", "shaders/compute.glsl");
GLuint objectSSBO;

View File

@ -38,8 +38,6 @@ void Camera::update_camera_vectors()
void Camera::update(float delta_time)
{
delta_time = 0.016;
_velocity += _acceleration * delta_time;
if (glm::length(_acceleration) < 0.1f)