diff options
author | Keuin <[email protected]> | 2022-04-21 21:01:26 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2022-04-21 21:01:26 +0800 |
commit | c0c0377e560f8980cbb0e5746cd2aeb91338ae47 (patch) | |
tree | a3f20abadb01ed72c0e5f487a27ca0bf6af4a9f0 /material.h | |
parent | 563c65c4ac6abf4522c9673d708a568f2acde2d4 (diff) |
Add default virtual destructor for material.
Diffstat (limited to 'material.h')
-rw-r--r-- | material.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |