mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
+ | Better code
This commit is contained in:
@ -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;
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user