Tracer
hittable.h
1
#ifndef hittable_h
2
#define hittable_h
3
4
#include "ray.h"
5
6
class
material
;
7
8
struct
hit_record
{
9
float
t;
10
vec3
p;
11
vec3
n;
//nomarl vector at the intersection at time t and point p
12
material
* mat;
13
};
14
15
class
hittable
{
16
public
:
17
__device__
virtual
bool
hit(
const
ray
& r,
float
min,
float
max,
hit_record
& rec)
const
= 0;
18
};
19
20
#endif
vec3
Definition:
vec3.h:10
ray
Definition:
ray.h:4
material
Definition:
material.h:11
hit_record
Definition:
hittable.h:8
hittable
Definition:
hittable.h:15
Generated by
1.8.13