diff options
Diffstat (limited to 'material_reflective.h')
-rw-r--r-- | material_reflective.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/material_reflective.h b/material_reflective.h index d2e4010..91afa7c 100644 --- a/material_reflective.h +++ b/material_reflective.h @@ -13,6 +13,8 @@ class material_reflective : public material { vec3d albedo; public: explicit material_reflective(vec3d &color) : albedo(color) {} + explicit material_reflective(vec3d &&color) : albedo(color) {} + explicit material_reflective(double color) : albedo{color, color, color} {} bool scatter(ray3d &r, const object &hit_obj, double hit_t, random_uv_gen_3d &ruvg) const override; }; |