Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
CameraUBO Struct Reference

Uniform Buffer Object containing view and projection matrices. More...

#include <uniforms.hpp>

Public Attributes

glm::mat4 view
 The view matrix.
glm::mat4 proj
 The projection matrix.
glm::mat4 viewProj
 View-projection matrix.
glm::vec4 camPos
glm::vec4 ambientLight
glm::vec4 lightDir
glm::vec4 lightColor

Detailed Description

Uniform Buffer Object containing view and projection matrices.

Representation of camera data inside Vulkan uniform buffers.

Member Data Documentation

◆ ambientLight

glm::vec4 CameraUBO::ambientLight

◆ camPos

glm::vec4 CameraUBO::camPos

◆ lightColor

glm::vec4 CameraUBO::lightColor

◆ lightDir

glm::vec4 CameraUBO::lightDir

◆ proj

glm::mat4 CameraUBO::proj

The projection matrix.

◆ view

glm::mat4 CameraUBO::view

The view matrix.

◆ viewProj

glm::mat4 CameraUBO::viewProj

View-projection matrix.


The documentation for this struct was generated from the following files: