libdonut
2.3.2
Application framework for cross-platform game development in C++20
|
Data layout for the attributes of a single instance of the mesh. More...
#include <donut/graphics/Model.hpp>
Public Attributes | |
mat4 | transformation |
Model transformation matrix. More... | |
mat3 | normalMatrix |
Transposed 3x3 basis of the model transformation matrix. More... | |
vec4 | textureOffsetAndScale |
Texture offset (xy) and texture scale (zw) to apply to the texture coordinates before sampling the texture. More... | |
vec4 | tintColor |
Tint color to use when rendering. More... | |
vec3 | specularFactor |
Specular factor to use when rendering. More... | |
vec3 | emissiveFactor |
Emissive factor to use when rendering. More... | |
Data layout for the attributes of a single instance of the mesh.
mat4 donut::graphics::Model::Object::Instance::transformation |
Model transformation matrix.
mat3 donut::graphics::Model::Object::Instance::normalMatrix |
Transposed 3x3 basis of the model transformation matrix.
vec4 donut::graphics::Model::Object::Instance::textureOffsetAndScale |
Texture offset (xy) and texture scale (zw) to apply to the texture coordinates before sampling the texture.
vec4 donut::graphics::Model::Object::Instance::tintColor |
Tint color to use when rendering.
vec3 donut::graphics::Model::Object::Instance::specularFactor |
Specular factor to use when rendering.
vec3 donut::graphics::Model::Object::Instance::emissiveFactor |
Emissive factor to use when rendering.