X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgeometry.hpp;fp=src%2Fgeometry.hpp;h=bcc9c9a0918ef1dabfe270441818340bc1f45104;hb=8881c507009521d08648560984c0f50166224542;hp=e8ead98de83bc75b1b32481cca16673371c966b3;hpb=6af76d9e1a6499ebdab405c1d679d24b9e19fded;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); }