Advertisement
Guest User

Untitled

a guest
Mar 29th, 2020
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1.  
  2.  
  3. #ifndef RAYDATA_TRANSPARENT_H
  4. #define RAYDATA_TRANSPARENT_H
  5.  
  6. #include "Material.h"
  7.  
  8. class Transparent : public Material {
  9.  
  10. public:
  11. Transparent(const vec3 &ambient, const vec3 &diffuse, const vec3 &specular, const int &beta, const float &alpha,
  12. const float &refraccio);
  13.  
  14. virtual ~Transparent();
  15.  
  16. virtual bool scatter(const Ray &r_in, const IntersectionInfo &rec, vec3 &color, std::vector<Ray> &r_out) const;
  17.  
  18. float refraccio;
  19.  
  20. };
  21.  
  22.  
  23. #endif //RAYDATA_TRANSPARENT_H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement