16th June 2015, 19:00
|
#13
| Link
|
Registered User
Join Date: Jan 2014
Location: France
Posts: 76
|
Quote:
Originally Posted by vivan
It should work just like that, except everything is done in floating point ([0..1] range).
So
Code:
(1.0 - m) * x1 + m * x2 + 0.5
or it's equal
Code:
lerp (x1, x2, m) + 0.5
|
Thanks vivan
|
|
|