2024-04-21 17:35:48 -04:00
|
|
|
// SPDX-FileCopyrightText: 2024 Joshua Goins <josh@redstrate.com>
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <glm/mat4x4.hpp>
|
|
|
|
|
|
|
|
struct Camera {
|
|
|
|
/// Field of view in degrees
|
|
|
|
float fieldOfView = 45.0f;
|
|
|
|
|
|
|
|
/// The aspect ratio of the camera, set automatically by @p RenderManager
|
|
|
|
float aspectRatio = 0.0f;
|
|
|
|
|
|
|
|
/// Near plane
|
|
|
|
float nearPlane = 0.1f;
|
|
|
|
|
|
|
|
/// Far plane
|
2024-04-27 21:11:53 -04:00
|
|
|
float farPlane = 1000.0f;
|
2024-04-21 17:35:48 -04:00
|
|
|
|
|
|
|
glm::mat4 perspective, view;
|
2024-04-27 17:49:03 -04:00
|
|
|
glm::vec3 position;
|
2024-04-21 17:35:48 -04:00
|
|
|
};
|