Chapter 6: Antialiasing
This commit is contained in:
19
code/target.h
Normal file
19
code/target.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user