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

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

#include <GREM/graphics_3d/Model3D.hpp>

Public Attributes

vec4 instanceTintColor
 Multiplicative tint color to use when rendering.
vec3 instanceEmissiveColor
 Additive emissive color to use when rendering.
vec3 instanceEmissiveFactor
 Emissive factor to use when rendering.
uint32_t instanceInverseBindPoseMatrixOffset
 Offset of the first matrix in the InverseBindPoseMatrixBuffer.
uint32_t instanceJointOffset
 Offset of the first joint in the JointBuffer.
uint32_t instanceMorphTargetWeightOffset
 Offset of the first morph target weight in the MorphTargetWeightBuffer.
uint32_t instanceInstanceIdentifier
 Instance identifier that may be used in shaders.

Detailed Description

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

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

Member Data Documentation

◆ instanceTintColor

vec4 grem::graphics::Model3D::Instance::instanceTintColor

Multiplicative tint color to use when rendering.

◆ instanceEmissiveColor

vec3 grem::graphics::Model3D::Instance::instanceEmissiveColor

Additive emissive color to use when rendering.

◆ instanceEmissiveFactor

vec3 grem::graphics::Model3D::Instance::instanceEmissiveFactor

Emissive factor to use when rendering.

◆ instanceInverseBindPoseMatrixOffset

uint32_t grem::graphics::Model3D::Instance::instanceInverseBindPoseMatrixOffset

Offset of the first matrix in the InverseBindPoseMatrixBuffer.

◆ instanceJointOffset

uint32_t grem::graphics::Model3D::Instance::instanceJointOffset

Offset of the first joint in the JointBuffer.

◆ instanceMorphTargetWeightOffset

uint32_t grem::graphics::Model3D::Instance::instanceMorphTargetWeightOffset

Offset of the first morph target weight in the MorphTargetWeightBuffer.

◆ instanceInstanceIdentifier

uint32_t grem::graphics::Model3D::Instance::instanceInstanceIdentifier

Instance identifier that may be used in shaders.


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