From 64d53cf72bccfdf653a5886de86da6c619f9d50a Mon Sep 17 00:00:00 2001 From: numzero Date: Thu, 7 Nov 2024 00:39:42 +0300 Subject: [PATCH] =?UTF-8?q?There=20isn=E2=80=99t=20that=20much=20precision?= =?UTF-8?q?=20in=20f32...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/riemann.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/riemann.rs b/src/riemann.rs index 10556b8..dfeea72 100644 --- a/src/riemann.rs +++ b/src/riemann.rs @@ -15,7 +15,7 @@ pub trait Metric { } fn part_derivs_at(&self, pos: Vec3) -> Tens3 { - part_deriv(|p| self.at(p), pos, 1.0 / 1024.0) // division by such eps is exact which is good for overall precision + part_deriv(|p| self.at(p), pos, 1.0 / 64.0) // there just isn’t enough precision for a small ε. } fn vec_length_at(&self, at: Vec3, v: Vec3) -> f32 {