]> git.localhorst.tv Git - tacos.git/blobdiff - src/graphics/viewport.hpp
ray/floor intersection experiments
[tacos.git] / src / graphics / viewport.hpp
index cc9a100a6af5af5abb137be7f6977bd1bd69db70..e9330c5e52f564b4921f831ea14013311a07ab2a 100644 (file)
@@ -18,6 +18,7 @@ public:
 
        int Width() const noexcept { return width; }
        int Height() const noexcept { return height; }
+       glm::vec2 InverseSize() const noexcept { return inverse_size; }
 
        const glm::mat4 &Perspective() const noexcept { return perspective; }
        const glm::mat4 &Ortho() const noexcept { return ortho; }
@@ -25,6 +26,7 @@ public:
 private:
        int width;
        int height;
+       glm::vec2 inverse_size;
 
        float fov;
        float aspect;