From 7c8b8a39fd36e190578587d8d92f28f460a1fc4b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 2 Jan 2022 21:07:37 +0000 Subject: Encapsulate Ray --- gfx/gl/camera.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gfx/gl/camera.h') diff --git a/gfx/gl/camera.h b/gfx/gl/camera.h index 9fbb0a1..b4dd0d5 100644 --- a/gfx/gl/camera.h +++ b/gfx/gl/camera.h @@ -1,13 +1,14 @@ #pragma once #include +#include class Camera { public: Camera(glm::vec3 pos, float fov, float aspect, float zNear, float zFar); [[nodiscard]] glm::mat4 GetViewProjection() const; - [[nodiscard]] glm::vec3 unProject(const glm::vec2 &) const; + [[nodiscard]] Ray unProject(const glm::vec2 &) const; glm::vec3 pos; glm::vec3 forward; -- cgit v1.2.3