From 2db0d27e7f1744443958717c19b732eed57455f2 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Sat, 9 Jan 2021 20:42:24 +0100 Subject: Replace old classes with compute shader structs --- include/dielectric.hpp | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 include/dielectric.hpp (limited to 'include/dielectric.hpp') diff --git a/include/dielectric.hpp b/include/dielectric.hpp deleted file mode 100644 index 91f1541..0000000 --- a/include/dielectric.hpp +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef __DIELECTRIC_HPP_ -#define __DIELECTRIC_HPP_ - -#include "material.hpp" - -class dielectric : public material { - public: - dielectric(double index_of_refraction); - - virtual bool scatter(const ray& r, const struct hit_info& info, color& attenuation, ray& scattered) const; - - double ior; - - private: - static double reflectance(double cosine, double ref_idx); -}; - -#endif // !__DIELECTRIC_HPP_ -- cgit v1.3