X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgeometry.hpp;h=bcc9c9a0918ef1dabfe270441818340bc1f45104;hb=41e0223ec090142bf03066f4f5fc1f5005095072;hp=e8ead98de83bc75b1b32481cca16673371c966b3;hpb=4d0ef1687987a0801469c7262f81efd36636605a;p=blank.git diff --git a/src/geometry.hpp b/src/geometry.hpp index e8ead98..bcc9c9a 100644 --- a/src/geometry.hpp +++ b/src/geometry.hpp @@ -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); }