diff --git a/sfw/application/camera_3d.cpp b/sfw/application/camera_3d.cpp index 4ef7a50..2be6131 100644 --- a/sfw/application/camera_3d.cpp +++ b/sfw/application/camera_3d.cpp @@ -67,6 +67,15 @@ void FrustumCamera::bind() { FrustumCamera::FrustumCamera() : Camera3D() { + offset = 0; + + projection_matrix.set_frustum( + size, + screen_aspect_ratio, + offset, + znear, + zfar, + vaspect); } FrustumCamera::~FrustumCamera() { diff --git a/sfw/application/camera_3d.h b/sfw/application/camera_3d.h index 1a7f51e..b9564e2 100644 --- a/sfw/application/camera_3d.h +++ b/sfw/application/camera_3d.h @@ -49,7 +49,8 @@ public: class FrustumCamera : public Camera3D { public: - //todo + float offset; + void bind(); FrustumCamera();