diff options
author | Keuin <[email protected]> | 2022-04-13 13:44:05 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-04-13 13:44:05 +0800 |
commit | 4ad345447384ae9327cab0977b95d0b67f8bde57 (patch) | |
tree | f74d62e7bb3118f73e7dbb4500b80561d5c0d640 /main_simple_scanner.cpp | |
parent | d883ff94342f418b87ac2333b3fdf779bd2dfa0f (diff) |
Simplify bias_ctx's constructor.
Diffstat (limited to 'main_simple_scanner.cpp')
-rw-r--r-- | main_simple_scanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main_simple_scanner.cpp b/main_simple_scanner.cpp index 5f59558..bcec163 100644 --- a/main_simple_scanner.cpp +++ b/main_simple_scanner.cpp @@ -21,7 +21,7 @@ void generate_image(uint16_t image_width, uint16_t image_height, double viewport double r = 1.0 * image_width / image_height; basic_viewport8b vp{viewport_width, viewport_width / r, vec3d{0, 0, -focal_length}}; hitlist8b world; - bias_ctx bias{false, 0}; + bias_ctx bias{}; world.add_object(std::make_shared<sphere>( vec3d{0, -100.5, -1}, 100)); // the earth |