|
libmx2 2.2.1
C++20 multimedia and game-engine library (SDL2 / OpenGL / Vulkan)
|
Parsed Wavefront MTL material properties. More...
#include <model.hpp>
Public Attributes | |
| std::string | name |
| Material name (newmtl). | |
| float | ka [3] = {0.2f, 0.2f, 0.2f} |
| Ambient colour. | |
| float | kd [3] = {0.8f, 0.8f, 0.8f} |
| Diffuse colour. | |
| float | ks [3] = {0.0f, 0.0f, 0.0f} |
| Specular colour. | |
| float | ns = 30.0f |
| Specular exponent. | |
| float | d = 1.0f |
| Opacity (dissolve). | |
| int | illum = 2 |
| Illumination model. | |
| std::string | map_kd |
| Diffuse texture filename. | |
| float mx::MXMaterial::d = 1.0f |
Opacity (dissolve).
Definition at line 51 of file model.hpp.
Referenced by mx::Model::loadMTL(), and mx::MXModel::loadMTL().
| int mx::MXMaterial::illum = 2 |
Illumination model.
Definition at line 52 of file model.hpp.
Referenced by mx::Model::loadMTL(), and mx::MXModel::loadMTL().
| float mx::MXMaterial::ka = {0.2f, 0.2f, 0.2f} |
Ambient colour.
Definition at line 47 of file model.hpp.
Referenced by mx::Model::loadMTL(), and mx::MXModel::loadMTL().
| float mx::MXMaterial::kd = {0.8f, 0.8f, 0.8f} |
Diffuse colour.
Definition at line 48 of file model.hpp.
Referenced by mx::Model::loadMTL(), and mx::MXModel::loadMTL().
| float mx::MXMaterial::ks = {0.0f, 0.0f, 0.0f} |
Specular colour.
Definition at line 49 of file model.hpp.
Referenced by mx::Model::loadMTL(), and mx::MXModel::loadMTL().
| std::string mx::MXMaterial::map_kd |
Diffuse texture filename.
Definition at line 53 of file model.hpp.
Referenced by mx::Model::loadMTL(), and mx::MXModel::loadMTL().
| std::string mx::MXMaterial::name |
Material name (newmtl).
Definition at line 46 of file model.hpp.
Referenced by mx::Model::loadMTL(), and mx::MXModel::loadMTL().
| float mx::MXMaterial::ns = 30.0f |
Specular exponent.
Definition at line 50 of file model.hpp.
Referenced by mx::Model::loadMTL(), and mx::MXModel::loadMTL().