KDTree and multiple mesh and primative rendering

This commit is contained in:
Ben Kyd
2019-08-07 05:01:43 +01:00
parent cf142ff5be
commit 17df4e0d09
19 changed files with 395 additions and 38 deletions

View File

@@ -1,7 +1,7 @@
#include "plane.hpp"
#include "../ray.hpp"
bool Plane::DoesIntersect(Ray& ray, float& t) {
bool Plane::Intersect(Ray& ray, float& t) {
t = INFINITY;
float dNormal = glm::dot(normal, ray.direction);
if (dNormal > 1e-6) {