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 a8d64a52df Properly transition image layouts and create barriers
This along with other misc fixes by listening to the validation layers
"fixes" specular, but just for the skin. I need to do some more work to
figure out why it doesn't work for character shaders yet.

Also introduces new helper functions to Device to easily transition
textures and name them.
2024-04-27 17:49:03 -04:00

23 lines
No EOL
498 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;
glm::vec3 position;
};