diff options
author | Keuin <[email protected]> | 2022-04-15 14:06:27 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-04-15 14:06:27 +0800 |
commit | 2d4671d5469116b05709bb1acb614d784d339964 (patch) | |
tree | afa839deea5e01ab3cd062968eae30ca56310370 /hitlist.h | |
parent | 50cd8dd3dd029ce432f8e517b4c054e75b5cfe8e (diff) |
Make ray3::decay_ distinguishable between different color channels.
Diffstat (limited to 'hitlist.h')
-rw-r--r-- | hitlist.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |