vengine  0.0.1
3D graphics engine
Loading...
Searching...
No Matches
FrameInfo.hpp
Go to the documentation of this file.
1///
2/// @file FrameInfo.hpp
3/// @brief This file contains the FrameInfo class
4/// @namespace ven
5///
6
7#pragma once
8
9#include <array>
10
15
16namespace ven {
17
18static constexpr float DEFAULT_AMBIENT_LIGHT_INTENSITY = .2F;
19static constexpr glm::vec4 DEFAULT_AMBIENT_LIGHT_COLOR = {glm::vec3(1.F), DEFAULT_AMBIENT_LIGHT_INTENSITY};
20
22 {
23 glm::vec4 position{};
24 glm::vec4 color{};
25 float shininess{32.F};
26 float padding[3]; // Pad to 32 bytes
27 };
28
30 glm::mat4 modelMatrix{1.F};
31 glm::mat4 normalMatrix{1.F};
32 };
33
34 struct GlobalUbo
35 {
36 glm::mat4 projection{1.F};
37 glm::mat4 view{1.F};
38 glm::mat4 inverseView{1.F};
40 std::array<PointLightData, MAX_LIGHTS> pointLights;
41 uint8_t numLights;
42 };
43
55
56} // namespace ven
This file contains the Camera class.
This file contains the DescriptorPool class.
This file contains the Light class.
This file contains the Object class.
Class for camera.
Definition Camera.hpp:28
Class for descriptor pool.
Definition Pool.hpp:22
std::unordered_map< unsigned int, Light > Map
Definition Light.hpp:32
std::unordered_map< unsigned int, Object > Map
Definition Object.hpp:28
static constexpr float DEFAULT_AMBIENT_LIGHT_INTENSITY
Definition FrameInfo.hpp:18
static constexpr glm::vec4 DEFAULT_AMBIENT_LIGHT_COLOR
Definition FrameInfo.hpp:19
Camera & camera
Definition FrameInfo.hpp:49
Object::Map & objects
Definition FrameInfo.hpp:52
Light::Map & lights
Definition FrameInfo.hpp:53
VkCommandBuffer commandBuffer
Definition FrameInfo.hpp:48
VkDescriptorSet globalDescriptorSet
Definition FrameInfo.hpp:50
DescriptorPool & frameDescriptorPool
Definition FrameInfo.hpp:51
unsigned long frameIndex
Definition FrameInfo.hpp:46
glm::vec4 ambientLightColor
Definition FrameInfo.hpp:39
std::array< PointLightData, MAX_LIGHTS > pointLights
Definition FrameInfo.hpp:40
glm::mat4 projection
Definition FrameInfo.hpp:36
glm::mat4 inverseView
Definition FrameInfo.hpp:38
glm::mat4 view
Definition FrameInfo.hpp:37
uint8_t numLights
Definition FrameInfo.hpp:41