]> git.localhorst.tv Git - blank.git/blobdiff - src/model/shapes.hpp
textures
[blank.git] / src / model / shapes.hpp
index b5e965a1c8f1e2e302f2ae656397b631bac02c08..48205305954ba3c03da6cb3b41bf0c329c2b7737 100644 (file)
@@ -17,6 +17,7 @@ public:
        NullShape();
 
        bool Intersects(const Ray &, const glm::mat4 &, float &, glm::vec3 &) const noexcept override;
+       bool Intersects(const glm::mat4 &, const AABB &, const glm::mat4 &, float &, glm::vec3 &) const noexcept override;
 
 };
 
@@ -28,6 +29,7 @@ public:
        CuboidShape(const AABB &bounds);
 
        bool Intersects(const Ray &, const glm::mat4 &, float &, glm::vec3 &) const noexcept override;
+       bool Intersects(const glm::mat4 &, const AABB &, const glm::mat4 &, float &, glm::vec3 &) const noexcept override;
 
 private:
        AABB bb;
@@ -42,6 +44,7 @@ public:
        StairShape(const AABB &bounds, const glm::vec2 &clip);
 
        bool Intersects(const Ray &, const glm::mat4 &, float &, glm::vec3 &) const noexcept override;
+       bool Intersects(const glm::mat4 &, const AABB &, const glm::mat4 &, float &, glm::vec3 &) const noexcept override;
 
 private:
        AABB top, bot;