|
libmx2 2.2.1
C++20 multimedia and game-engine library (SDL2 / OpenGL / Vulkan)
|
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. | |
Standard UBO layout uploaded to shaders each frame.
Provides model/view/projection matrices plus application-defined parameters and a colour tint.
| glm::mat4 mx::UniformBufferObject::model |
| glm::vec4 mx::UniformBufferObject::params |
| glm::mat4 mx::UniformBufferObject::view |