Skip to content

Book2: Listing 70: fuzz value and include bvh.h #694

@estshorter

Description

@estshorter
  • bvh.h should be included as it usesbvh_node.
  • Fuzz value for the metal sphere is set to 10.0, but 1.0 would be better, which is the maximum value.

objects.add(make_shared<sphere>(
point3(0, 150, 145), 50, make_shared<metal>(color(0.8, 0.8, 0.9), 10.0)
));

metal(const color& a, double f) : albedo(a), fuzz(f < 1 ? f : 1) {}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions