summaryrefslogtreecommitdiff
path: root/main_simple_scanner.cpp
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-04-15 18:03:14 +0800
committerKeuin <[email protected]>2022-04-15 18:03:14 +0800
commit272141d93324f32c15b7e230b0e37d122a418f54 (patch)
tree78ab672f4ca3bc08f2e09799025cd0c5640fe7ca /main_simple_scanner.cpp
parent973806b2a59d458eae7dac8868721c4990cf8650 (diff)
Add fuzzy reflective material.
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 054597b..72091dd 100644
--- a/main_simple_scanner.cpp
+++ b/main_simple_scanner.cpp
@@ -50,7 +50,7 @@ void generate_image(uint16_t image_width, uint16_t image_height, double viewport
#ifdef SCENE_REFLECT
material_diffuse_lambertian m_ground{{0.8, 0.8, 0.0}};
material_diffuse_lambertian m_ball_center{{0.7, 0.3, 0.3}};
- material_reflective m_ball_left{{0.8, 0.8, 0.8}};
+ material_fuzzy_reflective m_ball_left{{0.8, 0.8, 0.8}, 1.0};
material_reflective m_ball_right{{0.8, 0.6, 0.2}};
// the earth
world.add_object(std::make_shared<sphere>(vec3d{0.0, -100.5, -1.0}, 100.0, m_ground));