1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-14 17:14:29 +02:00

ease-out for pickups overview

This commit is contained in:
XProger
2018-12-06 09:15:45 +03:00
parent 521b767109
commit a62d0df8db

View File

@@ -714,8 +714,12 @@ namespace UI {
const PickupItem &item = pickups[i]; const PickupItem &item = pickups[i];
float offset = 0.0f; float offset = 0.0f;
if (item.time < 1.0f) if (item.time < 1.0f) {
offset = (1.0f - item.time) * 512.0f; offset = 1.0f - item.time;
offset *= offset;
offset *= offset;
offset *= 512.0f;
}
mat4 matrix; mat4 matrix;
matrix.identity(); matrix.identity();