mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-13 16:44:50 +02:00
ease-out for pickups overview
This commit is contained in:
8
src/ui.h
8
src/ui.h
@@ -714,8 +714,12 @@ namespace UI {
|
||||
const PickupItem &item = pickups[i];
|
||||
|
||||
float offset = 0.0f;
|
||||
if (item.time < 1.0f)
|
||||
offset = (1.0f - item.time) * 512.0f;
|
||||
if (item.time < 1.0f) {
|
||||
offset = 1.0f - item.time;
|
||||
offset *= offset;
|
||||
offset *= offset;
|
||||
offset *= 512.0f;
|
||||
}
|
||||
|
||||
mat4 matrix;
|
||||
matrix.identity();
|
||||
|
Reference in New Issue
Block a user