]> git.localhorst.tv Git - blank.git/blobdiff - src/geometry.hpp
simple HUD
[blank.git] / src / geometry.hpp
index e8ead98de83bc75b1b32481cca16673371c966b3..bcc9c9a0918ef1dabfe270441818340bc1f45104 100644 (file)
@@ -23,7 +23,12 @@ struct Ray {
        glm::vec3 dir;
 };
 
-bool Intersection(const Ray &, const AABB &, const glm::mat4 &M, float *dist = nullptr);
+bool Intersection(
+       const Ray &,
+       const AABB &,
+       const glm::mat4 &M,
+       float *dist = nullptr,
+       glm::vec3 *normal = nullptr);
 
 }