Add fuzziness to metal materials
This commit is contained in:
parent
58ffcff459
commit
9870dc128e
3 changed files with 10 additions and 5 deletions
4
main.cpp
4
main.cpp
|
|
@ -75,8 +75,8 @@ int main()
|
|||
|
||||
std::shared_ptr<lambertian> material_ground = make_shared<lambertian>(color(0.8, 0.8, 0.0));
|
||||
std::shared_ptr<lambertian> material_center = make_shared<lambertian>(color(0.7, 0.3, 0.3));
|
||||
std::shared_ptr<metal> material_left = make_shared<metal>(color(0.8, 0.8, 0.8));
|
||||
std::shared_ptr<metal> material_right = make_shared<metal>(color(0.8, 0.6, 0.2));
|
||||
std::shared_ptr<metal> material_left = make_shared<metal>(color(0.8, 0.8, 0.8), 0.3);
|
||||
std::shared_ptr<metal> material_right = make_shared<metal>(color(0.8, 0.6, 0.2), 1.0);
|
||||
|
||||
world.add(make_shared<sphere>(point3( 0.0, -100.5, -1.0), 100.0, material_ground));
|
||||
world.add(make_shared<sphere>(point3( 0.0, 0.0, -1.0), 0.5, material_center));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue