From 1ed823c4fc7ad137b88019a2fa9f17ae3d10215d Mon Sep 17 00:00:00 2001 From: Keuin Date: Fri, 15 Apr 2022 14:34:46 +0800 Subject: Move diffusive into material_diffusive. Add material_reflective.h. --- material.h | 27 --------------------------- 1 file changed, 27 deletions(-) (limited to 'material.h') diff --git a/material.h b/material.h index adb2b69..b340796 100644 --- a/material.h +++ b/material.h @@ -22,31 +22,4 @@ public: virtual bool scatter(ray3d &r, const object &hit_obj, double hit_t, random_uv_gen_3d &ruvg) const = 0; }; -class material_diffuse_lambertian : public material { - vec3d albedo; -public: - explicit material_diffuse_lambertian(vec3d albedo); - explicit material_diffuse_lambertian(double albedo); - - bool scatter(ray3d &r, const object &hit_obj, double hit_t, random_uv_gen_3d &ruvg) const override; -}; - -class material_diffuse_simple : public material { - vec3d albedo; -public: - explicit material_diffuse_simple(vec3d albedo); - explicit material_diffuse_simple(double albedo); - - bool scatter(ray3d &r, const object &hit_obj, double hit_t, random_uv_gen_3d &ruvg) const override; -}; - -class material_diffuse_hemispherical : public material { - vec3d albedo; -public: - explicit material_diffuse_hemispherical(vec3d albedo); - explicit material_diffuse_hemispherical(double albedo); - - bool scatter(ray3d &r, const object &hit_obj, double hit_t, random_uv_gen_3d &ruvg) const override; -}; - #endif //RT_MATERIAL_H -- cgit v1.2.3