summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hitlist.h2
-rw-r--r--object.h2
-rw-r--r--sphere.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/hitlist.h b/hitlist.h
index ab9cca3..76832db 100644
--- a/hitlist.h
+++ b/hitlist.h
@@ -86,7 +86,7 @@ public:
return pixel<T>::from_normalized(nv);
#endif
#ifdef T_DIFFUSE
- const auto &materi = hit_obj->material();
+ const auto &materi = hit_obj->get_material();
if (materi.scatter(r, *hit_obj, hit_t, ruvg)) {
TRACELOG(" scattered ray: [%-10f,%-10f,%-10f], decay=[%-10f,%-10f,%-10f]\n",
r.direction().x, r.direction().y, r.direction().z,
diff --git a/object.h b/object.h
index c679d83..7f35237 100644
--- a/object.h
+++ b/object.h
@@ -41,7 +41,7 @@ public:
virtual ~object() = default;
// Get this object's material.
- virtual material &material() const = 0;
+ virtual material &get_material() const = 0;
};
diff --git a/sphere.h b/sphere.h
index a5a935e..8cc1caf 100644
--- a/sphere.h
+++ b/sphere.h
@@ -39,7 +39,7 @@ public:
return (where - center) / radius;
}
- class material &material() const override {
+ class material &get_material() const override {
return materi;
}