This repository has been archived on 2023-01-29. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
1weekendraytracer/code/target.h
2019-01-21 12:27:52 +01:00

20 lines
242 B
C++

#ifndef TARGET_H
#define TARGET_H
#include "ray.h"
struct hit_record
{
float t;
vec3 p;
vec3 normal;
};
class target
{
public:
virtual bool hit(const ray &r, float t_min, float t_max, hit_record &rec) const = 0;
};
#endif