+ | Pixelisation when moving

This commit is contained in:
TheRedShip
2025-01-10 23:44:17 +01:00
parent bd2a371b50
commit e46f41a4b4
7 changed files with 33 additions and 7 deletions

View File

@ -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);
}