Midway hittable list inclusion

This commit is contained in:
David 2021-08-21 00:20:51 +02:00
commit 8c1324c074
6 changed files with 141 additions and 2 deletions

16
hittable.cpp Normal file
View file

@ -0,0 +1,16 @@
#ifndef HITTABLE_H
#define HITTABLE_H
#include "ray.h"
struct hit_record {
point3 p;
vec3 normal;
double t;
};
struct hittable {
virtual bool hit(const ray& r, double t_min, double t_max, hit_record& rec) const = 0;
};
#endif