summaryrefslogtreecommitdiff
path: root/hitlist.h
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-04-15 14:06:27 +0800
committerKeuin <[email protected]>2022-04-15 14:06:27 +0800
commit2d4671d5469116b05709bb1acb614d784d339964 (patch)
treeafa839deea5e01ab3cd062968eae30ca56310370 /hitlist.h
parent50cd8dd3dd029ce432f8e517b4c054e75b5cfe8e (diff)
Make ray3::decay_ distinguishable between different color channels.
Diffstat (limited to 'hitlist.h')
-rw-r--r--hitlist.h2
1 files changed, 1 insertions, 1 deletions
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<typename T>
pixel<T> 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;