libmx2 2.2.1
C++20 multimedia and game-engine library (SDL2 / OpenGL / Vulkan)
Loading...
Searching...
No Matches
mx::UniformBufferObject Struct Reference

Standard UBO layout uploaded to shaders each frame. More...

#include <vk.hpp>

Public Attributes

glm::mat4 model
 Model transform matrix.
glm::mat4 view
 View (camera) matrix.
glm::mat4 proj
 Projection matrix.
glm::vec4 params
 Application-defined shader parameters.
glm::vec4 color
 Global colour tint.

Detailed Description

Standard UBO layout uploaded to shaders each frame.

Provides model/view/projection matrices plus application-defined parameters and a colour tint.

Definition at line 102 of file vk.hpp.

Member Data Documentation

◆ color

glm::vec4 mx::UniformBufferObject::color

Global colour tint.

Definition at line 107 of file vk.hpp.

◆ model

glm::mat4 mx::UniformBufferObject::model

Model transform matrix.

Definition at line 103 of file vk.hpp.

◆ params

glm::vec4 mx::UniformBufferObject::params

Application-defined shader parameters.

Definition at line 106 of file vk.hpp.

◆ proj

glm::mat4 mx::UniformBufferObject::proj

Projection matrix.

Definition at line 105 of file vk.hpp.

◆ view

glm::mat4 mx::UniformBufferObject::view

View (camera) matrix.

Definition at line 104 of file vk.hpp.


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