You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
386 B

4 years ago
  1. #pragma once
  2. #include "Vector3.h"
  3. class Ray;
  4. class Material {
  5. public:
  6. virtual bool Scatter(const Ray& input_ray, const HitPoint& hit_point, Ray& out_ray) = 0;
  7. };
  8. class LamberMaterial : public Material {
  9. public:
  10. Vector3 mDiffuse;
  11. LamberMaterial(const Vector3 diffuse) { mDiffuse = diffuse; }
  12. bool Scatter(const Ray& input_ray, const HitPoint& hit_point, Ray& out_ray);
  13. };