Chapter 6: Antialiasing

This commit is contained in:
Michael Smith
2019-01-21 12:27:52 +01:00
parent 0c01a876b0
commit 0e5ce7ec07
7 changed files with 161 additions and 29 deletions

19
code/target.h Normal file
View 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