libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Attributes | List of all members
donut::graphics::Model::Object::Instance Struct Reference

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...
 

Detailed Description

Data layout for the attributes of a single instance of the mesh.

Note
Meets the requirements of the donut::graphics::mesh_instance concept.

Member Data Documentation

◆ transformation

mat4 donut::graphics::Model::Object::Instance::transformation

Model transformation matrix.

◆ normalMatrix

mat3 donut::graphics::Model::Object::Instance::normalMatrix

Transposed 3x3 basis of the model transformation matrix.

◆ textureOffsetAndScale

vec4 donut::graphics::Model::Object::Instance::textureOffsetAndScale

Texture offset (xy) and texture scale (zw) to apply to the texture coordinates before sampling the texture.

◆ tintColor

vec4 donut::graphics::Model::Object::Instance::tintColor

Tint color to use when rendering.

◆ specularFactor

vec3 donut::graphics::Model::Object::Instance::specularFactor

Specular factor to use when rendering.

◆ emissiveFactor

vec3 donut::graphics::Model::Object::Instance::emissiveFactor

Emissive factor to use when rendering.


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