summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeuin <[email protected]>2022-04-21 21:01:26 +0800
committerKeuin <[email protected]>2022-04-21 21:01:26 +0800
commitc0c0377e560f8980cbb0e5746cd2aeb91338ae47 (patch)
treea3f20abadb01ed72c0e5f487a27ca0bf6af4a9f0
parent563c65c4ac6abf4522c9673d708a568f2acde2d4 (diff)
Add default virtual destructor for material.
-rw-r--r--material.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/material.h b/material.h
index b340796..62bcf09 100644
--- a/material.h
+++ b/material.h
@@ -20,6 +20,8 @@ public:
// If this matter scatters, manipulate r and return true. Otherwise return false (the light is absorbed entirely).
// To make it thread-safe without locking mechanism, private states are passed-in as parameters.
virtual bool scatter(ray3d &r, const object &hit_obj, double hit_t, random_uv_gen_3d &ruvg) const = 0;
+
+ virtual ~material() = default;
};
#endif //RT_MATERIAL_H