Implemented frustum camera.

This commit is contained in:
Relintai 2023-12-20 14:42:45 +01:00
parent 147d547ac4
commit f4fbb8db59
2 changed files with 11 additions and 1 deletions

View File

@ -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() {

View File

@ -49,7 +49,8 @@ public:
class FrustumCamera : public Camera3D {
public:
//todo
float offset;
void bind();
FrustumCamera();