GREM 3.12.0
Game/Rendering Engine Modules for C++
Loading...
Searching...
No Matches
grem::graphics::Model2D::Instance Struct Reference

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.

Detailed Description

Data layout for the attributes of a single instance of a 2D model mesh.

Meets the requirements of the grem::graphics::mesh_instance concept.

Member Data Documentation

◆ instancePosition

vec2 grem::graphics::Model2D::Instance::instancePosition

Offset to apply to the vertex positions.

◆ instanceBasis

mat2 grem::graphics::Model2D::Instance::instanceBasis

Basis transformation to apply to the vertex positions.

◆ instanceTextureOffset

vec2 grem::graphics::Model2D::Instance::instanceTextureOffset

Offset to apply to the texture coordinates before sampling the texture.

◆ instanceTextureBasis

mat2 grem::graphics::Model2D::Instance::instanceTextureBasis

Basis transformation to apply to the texture coordinates before sampling the texture.

◆ instanceTintColor

vec4 grem::graphics::Model2D::Instance::instanceTintColor

Multiplicative tint color to use when rendering.

◆ instanceEmissiveColor

vec3 grem::graphics::Model2D::Instance::instanceEmissiveColor

Additive emissive color to use when rendering.


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