mirror of
https://github.com/TheRedShip/RT_GPU.git
synced 2025-09-27 10:48:34 +02:00
+ | Pixelisation when moving
This commit is contained in:
@ -162,3 +162,13 @@ int Window::getFrameCount(void) const
|
||||
{
|
||||
return (_frameCount);
|
||||
}
|
||||
|
||||
int Window::getPixelisation(void)
|
||||
{
|
||||
bool mouse = glfwGetMouseButton(_window, GLFW_MOUSE_BUTTON_RIGHT) == GLFW_PRESS;
|
||||
bool movement = _scene->getCamera()->getVelocity() > 0.0f;
|
||||
|
||||
if (mouse || movement)
|
||||
return (1);
|
||||
return (0);
|
||||
}
|
Reference in New Issue
Block a user