Structure representing a material with various properties. More...
#include <model.h>
Public Attributes | |
| char | name [128] |
| vec3 | flatColors [MATERIAL_PROPERTY_COUNT] |
| TextureMap | textureMaps [MATERIAL_PROPERTY_COUNT] |
| f32 | specularExp |
| f32 | opacity |
| f32 | opticalDensity |
| u8 | illumFlag |
Structure representing a material with various properties.
This structure holds the name, flat colors, texture maps, and other properties of a material.
| char Material::name[128] |
Name of the material
| vec3 Material::flatColors[MATERIAL_PROPERTY_COUNT] |
Array of flat colors for each material property
| TextureMap Material::textureMaps[MATERIAL_PROPERTY_COUNT] |
Array of texture maps for each material property
| f32 Material::specularExp |
Specular exponent (Ns)
| f32 Material::opacity |
Opacity (d)
| f32 Material::opticalDensity |
Optical density (Ni)
| u8 Material::illumFlag |
Illumination flag (illum)