Add world representation as hittable list

This commit is contained in:
Phireh 2021-08-21 15:59:44 +02:00
commit 1eeb328b60
4 changed files with 39 additions and 14 deletions

19
rtweekend.hpp Normal file
View file

@ -0,0 +1,19 @@
#ifndef RTWEEKEND_H
#define RTWEEKEND_H
#include <math.h>
#include <memory>
/* Utility functions */
double degrees_to_radians(double d)
{
return d * M_PI / 180;
}
/* Common internal headers */
#include "ray.hpp"
#include "vec3.hpp"
#endif