]> git.localhorst.tv Git - blank.git/blobdiff - src/geometry.hpp
add building notes
[blank.git] / src / geometry.hpp
index bcc9c9a0918ef1dabfe270441818340bc1f45104..9a9690b245cd59c0fff0c14baa6c74800120b054 100644 (file)
@@ -7,6 +7,8 @@
 
 namespace blank {
 
+constexpr float PI = 3.141592653589793238462643383279502884;
+
 struct AABB {
        glm::vec3 min;
        glm::vec3 max;
@@ -30,6 +32,8 @@ bool Intersection(
        float *dist = nullptr,
        glm::vec3 *normal = nullptr);
 
+bool CullTest(const AABB &box, const glm::mat4 &MVP);
+
 }
 
 #endif