From 5f9a664b0f0955cf3e49b5da9ce6d5835cf5f73f Mon Sep 17 00:00:00 2001 From: Keuin Date: Thu, 14 Apr 2022 20:55:49 +0800 Subject: Make hitlist no longer a generic class (but hitlist::color(...) is now a generic member function). --- hitlist.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'hitlist.h') diff --git a/hitlist.h b/hitlist.h index 02c942a..8625cb5 100644 --- a/hitlist.h +++ b/hitlist.h @@ -28,7 +28,6 @@ //#define DIFFUSE_HEMI // Diffuse with hemispherical scattering, i.e. using a normalized random vector within the hemisphere // A world, T is color depth -template class hitlist { std::vector> objects; @@ -43,6 +42,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); while (max_recursion_depth-- > 0) { @@ -114,6 +114,4 @@ public: } }; -using hitlist8b = hitlist; - #endif //RT_HITLIST_H -- cgit v1.2.3