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). --- main_simple_scanner.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main_simple_scanner.cpp') diff --git a/main_simple_scanner.cpp b/main_simple_scanner.cpp index 67a41d9..806fcfe 100644 --- a/main_simple_scanner.cpp +++ b/main_simple_scanner.cpp @@ -35,7 +35,7 @@ void generate_image(uint16_t image_width, uint16_t image_height, double viewport } else { vp = new aa_viewport{viewport_width, viewport_width / r, vec3d{0, 0, -focal_length}, samples}; } - hitlist world; + hitlist world; world.add_object(std::make_shared( vec3d{0, -100.5, -1}, 100)); // the earth -- cgit v1.2.3