Commit 0da40f39 authored by Ahmet Inan's avatar Ahmet Inan
Browse files

make lerp more stable

parent 90e9fb5d
......@@ -29,7 +29,7 @@ float fclampf(float x, float min, float max)
float flerpf(float a, float b, float x)
{
return a - a * x + b * x;
return a * (1.0 - x) + b * x;
}
char *string_time(char *fmt)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment