Removed some unnecessary roundings in MoveCameraAnimation

This commit is contained in:
Leon Styhre 2023-09-20 20:42:05 +02:00
parent dc714bf2b0
commit 7467e8a7f9

View file

@ -27,9 +27,9 @@ public:
void apply(float t) override void apply(float t) override
{ {
t -= 1; t -= 1;
cameraPosition[3].x = std::round(-glm::mix(-mCameraStart[3].x, mTarget.x, t * t * t + 1)); cameraPosition[3].x = -glm::mix(-mCameraStart[3].x, mTarget.x, t * t * t + 1);
cameraPosition[3].y = std::round(-glm::mix(-mCameraStart[3].y, mTarget.y, t * t * t + 1)); cameraPosition[3].y = -glm::mix(-mCameraStart[3].y, mTarget.y, t * t * t + 1);
cameraPosition[3].z = std::round(-glm::mix(-mCameraStart[3].z, mTarget.z, t * t * t + 1)); cameraPosition[3].z = -glm::mix(-mCameraStart[3].z, mTarget.z, t * t * t + 1);
} }
private: private: