summaryrefslogtreecommitdiff
path: root/main_simple_scanner.cpp
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-04-14 20:55:49 +0800
committerKeuin <[email protected]>2022-04-14 20:55:49 +0800
commit5f9a664b0f0955cf3e49b5da9ce6d5835cf5f73f (patch)
tree0caa3f8e5859fa2a689e685641d6bf24c508ea8a /main_simple_scanner.cpp
parentab29b428bdaa9f5a4691c9896b0fcaa9d7368225 (diff)
Make hitlist<T> no longer a generic class (but hitlist::color<T>(...) is now a generic member function).
Diffstat (limited to 'main_simple_scanner.cpp')
-rw-r--r--main_simple_scanner.cpp2
1 files changed, 1 insertions, 1 deletions
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<T>{viewport_width, viewport_width / r, vec3d{0, 0, -focal_length}, samples};
}
- hitlist<T> world;
+ hitlist world;
world.add_object(std::make_shared<sphere>(
vec3d{0, -100.5, -1},
100)); // the earth