X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgeometry.cpp;fp=src%2Fgeometry.cpp;h=416d930c4f68d0c24a0f690851264b98556b855b;hb=76b3ec0f6aa0dacf6d4944a2787991f3585299e8;hp=cd28bab4453836489e20531cb60ad39223ca4f94;hpb=6e59f3102d6d64355d5a30b708a326327b089aaf;p=blank.git diff --git a/src/geometry.cpp b/src/geometry.cpp index cd28bab..416d930 100644 --- a/src/geometry.cpp +++ b/src/geometry.cpp @@ -11,7 +11,7 @@ bool Intersection( const glm::mat4 &M, float *dist, glm::vec3 *normal -) { +) noexcept { float t_min = 0.0f; float t_max = std::numeric_limits::infinity(); const glm::vec3 aabb_pos(M[3].x, M[3].y, M[3].z); @@ -65,7 +65,7 @@ bool Intersection( return true; } -bool CullTest(const AABB &box, const glm::mat4 &MVP) { +bool CullTest(const AABB &box, const glm::mat4 &MVP) noexcept { // transform corners into clip space glm::vec4 corners[8] = { { box.min.x, box.min.y, box.min.z, 1.0f },