1
Fork 0
mirror of https://github.com/redstrate/Novus.git synced 2025-04-22 12:07:45 +00:00
novus/renderer/include/camera.h
Joshua Goins e34daadbcd Split up Renderer's source files and a lot of refactoring
This now splits up the rendering system into sensible parts, and makes
it easier to switch between the simple renderer and the new experimental
one. Lots of refactors I needed to do for a while are now done, too.
2024-04-21 17:35:51 -04:00

22 lines
No EOL
474 B
C

// 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
float farPlane = 100.0f;
glm::mat4 perspective, view;
};