|
Engine²
Open-source game engine written in C++.
|
GPU buffer structure for model transform data. More...
#include <TransformGPUBuffer.hpp>
Public Attributes | |
| glm::mat4 | modelMatrix |
| glm::mat4 | normalMatrix |
GPU buffer structure for model transform data.
Contains the model matrix and normal matrix for proper vertex/normal transformations. The normal matrix (inverse transpose of the upper-left 3x3 of modelMatrix) is required for correct normal transformation when the model has non-uniform scaling.
Layout (WGSL std140 alignment):
| glm::mat4 DefaultPipeline::Resource::TransformGPUData::modelMatrix |
| glm::mat4 DefaultPipeline::Resource::TransformGPUData::normalMatrix |