|
GREM 3.12.0
Game/Rendering Engine Modules for C++
|
Data layout for the attributes of a single instance of a 2D model mesh. More...
#include <GREM/graphics_2d/Model2D.hpp>
Public Attributes | |
| vec2 | instancePosition |
| Offset to apply to the vertex positions. | |
| mat2 | instanceBasis |
| Basis transformation to apply to the vertex positions. | |
| vec2 | instanceTextureOffset |
| Offset to apply to the texture coordinates before sampling the texture. | |
| mat2 | instanceTextureBasis |
| Basis transformation to apply to the texture coordinates before sampling the texture. | |
| vec4 | instanceTintColor |
| Multiplicative tint color to use when rendering. | |
| vec3 | instanceEmissiveColor |
| Additive emissive color to use when rendering. | |
Data layout for the attributes of a single instance of a 2D model mesh.
Meets the requirements of the grem::graphics::mesh_instance concept.
| mat2 grem::graphics::Model2D::Instance::instanceBasis |
Basis transformation to apply to the vertex positions.
| vec2 grem::graphics::Model2D::Instance::instanceTextureOffset |
Offset to apply to the texture coordinates before sampling the texture.
| mat2 grem::graphics::Model2D::Instance::instanceTextureBasis |
Basis transformation to apply to the texture coordinates before sampling the texture.
| vec4 grem::graphics::Model2D::Instance::instanceTintColor |
Multiplicative tint color to use when rendering.
| vec3 grem::graphics::Model2D::Instance::instanceEmissiveColor |
Additive emissive color to use when rendering.