mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
+ | Portal viewing angle teleportation
This commit is contained in:
@ -134,7 +134,7 @@ void Window::keyCallback(GLFWwindow *window, int key, int scancode, int action,
|
||||
}
|
||||
}
|
||||
|
||||
void Window::display()
|
||||
void Window::updateDeltaTime()
|
||||
{
|
||||
static double lastTime = glfwGetTime();
|
||||
double currentTime = glfwGetTime();
|
||||
@ -146,6 +146,12 @@ void Window::display()
|
||||
|
||||
if (accumulate)
|
||||
_frameCount++;
|
||||
}
|
||||
|
||||
void Window::display()
|
||||
{
|
||||
if (accumulate)
|
||||
_frameCount++;
|
||||
|
||||
if (_scene->getCamera()->getVelocity() > 0.0f)
|
||||
_frameCount = 0;
|
||||
|
Reference in New Issue
Block a user