1
Fork 0

Return bool in ray_triangle

It only returns booleans, so it doesn't make sense for this to be a
float.
This commit is contained in:
Joshua Goins 2024-09-25 10:33:59 +02:00
parent eaa992bdbc
commit 0aa202e8a1

View file

@ -22,7 +22,7 @@ namespace intersections {
return false; return false;
} }
inline float ray_triangle( inline bool ray_triangle(
const Ray ray, const Ray ray,
const glm::vec3 v0, const glm::vec3 v0,
const glm::vec3 v1, const glm::vec3 v1,