summaryrefslogtreecommitdiff
path: root/gfx/gl/camera.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/camera.cpp')
-rw-r--r--gfx/gl/camera.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gfx/gl/camera.cpp b/gfx/gl/camera.cpp
index b4a76d0..2f48ca5 100644
--- a/gfx/gl/camera.cpp
+++ b/gfx/gl/camera.cpp
@@ -20,6 +20,12 @@ Camera::MoveForward(float amt)
}
void
+Camera::SlideForward(float amt)
+{
+ pos += forward * amt * glm::vec3 {1, 0, 1};
+}
+
+void
Camera::MoveRight(float amt)
{
pos += glm::cross(up, forward) * amt;