From 0bce36f41debff1046359e503c5120f5035ef45f Mon Sep 17 00:00:00 2001 From: Andre Henriques Date: Wed, 15 Mar 2023 22:58:46 +0000 Subject: [PATCH] update diff target --- src/render.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render.rs b/src/render.rs index d77a2dc..2325bda 100644 --- a/src/render.rs +++ b/src/render.rs @@ -331,7 +331,7 @@ pub trait Lerp { impl Lerp for f64 { fn lerp(self, other: &Self, diff: f64) -> Self { - let delta = diff / 1_000_000.0; + let delta = diff / 1_000.0; let lerped = self + ((*other - self) * 0.5 * delta); if *other != self {