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:
8
src/ui.h
8
src/ui.h
@@ -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();
|
||||||
|
Reference in New Issue
Block a user