![]() |
TGX 1.1.1
A tiny 2D/3D graphics library optimized for 32 bits microcontrollers.
|
Optional material extension for a Mesh3Dv2 object. More...
#include <Mesh3Dv2.h>
Public Attributes | |
| RGBf | emissive_color |
| Emissive color. Black means no color emission. | |
| float | emissive_strength |
| Emissive multiplier. 0.0f disables emission. | |
| const Image< color_t > * | emissive_texture |
| Optional emissive texture image, or nullptr. | |
| uint32_t | flags |
| Reserved per-material behavior flags. 0 means default behavior. | |
Optional material extension for a Mesh3Dv2 object.
MeshMaterialExtra3Dv2 entries are stored in a separate optional array so the base MeshMaterial3Dv2 structure remains unchanged. When present, Mesh3Dv2::material_extras has exactly Mesh3Dv2::nb_materials entries and entry i extends Mesh3Dv2::materials[i].
The current renderer ignores this metadata. It is provided so generated meshes can already carry emissive material data for future shader paths.