mirror of
https://github.com/redstrate/Novus.git
synced 2025-04-21 19:57:44 +00:00
The specular for lights now show up correctly. The offscreen buffers use more accurate formats. And a new Scene struct is added for future usage.
23 lines
No EOL
499 B
C
23 lines
No EOL
499 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 = 1000.0f;
|
|
|
|
glm::mat4 perspective, view;
|
|
glm::vec3 position;
|
|
}; |