From 2d4671d5469116b05709bb1acb614d784d339964 Mon Sep 17 00:00:00 2001 From: Keuin Date: Fri, 15 Apr 2022 14:06:27 +0800 Subject: Make ray3::decay_ distinguishable between different color channels. --- hitlist.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hitlist.h') diff --git a/hitlist.h b/hitlist.h index 3b853de..797644a 100644 --- a/hitlist.h +++ b/hitlist.h @@ -39,7 +39,7 @@ public: // Given a ray, compute the color. template pixel color(ray3d r, random_uv_gen_3d &ruvg, uint_fast32_t max_recursion_depth = 64) const { - assert(r.decay() == 1.0); + assert(r.decay().is_one()); while (max_recursion_depth-- > 0) { // Detect hits bool hit = false; -- cgit v1.2.3