Encapsulates all information that the describes the surface appearance of a StelModel.
More...
#include <OBJ.hpp>
|
enum | Illum {
I_NONE =-1,
I_DIFFUSE =0,
I_DIFFUSE_AND_AMBIENT =1,
I_SPECULAR =2,
I_TRANSLUCENT =9
} |
| MTL Illumination models, do not use externally anymore. More...
|
|
Encapsulates all information that the describes the surface appearance of a StelModel.
Definition at line 71 of file OBJ.hpp.
MTL Illumination models, do not use externally anymore.
See the developer doc for info.
- Deprecated:
- This is from the old illum model, do not consider this outside this class!
Definition at line 75 of file OBJ.hpp.
OBJ::Material::Material |
( |
| ) |
|
|
inline |
Creates a material with the default values.
Definition at line 79 of file OBJ.hpp.
void OBJ::Material::finalize |
( |
| ) |
|
Needs to be called after everything is loaded.
float OBJ::Material::alpha |
Transparency [0..1].
Definition at line 115 of file OBJ.hpp.
bool OBJ::Material::alphatest |
If to perform binary alpha testing. Default off.
Definition at line 117 of file OBJ.hpp.
QVector3D OBJ::Material::ambient |
Ka, Kd, Ks, Ke.
Definition at line 108 of file OBJ.hpp.
bool OBJ::Material::backfacecull |
If to perform backface culling. Default on.
Definition at line 119 of file OBJ.hpp.
QString OBJ::Material::bumpMapName |
Bump map name.
Shared pointer to bump map texture of the model. This can be null.
Definition at line 130 of file OBJ.hpp.
QString OBJ::Material::emissiveMapName |
Name of emissive texture.
Shared pointer to emissive texture of the model. This can be null.
Definition at line 138 of file OBJ.hpp.
bool OBJ::Material::hasSpecularity |
Quick check if this material has specularity.
Definition at line 121 of file OBJ.hpp.
bool OBJ::Material::hasTransparency |
Quick check if this material has "real" transparency (i.e. needs blending)
Definition at line 123 of file OBJ.hpp.
QString OBJ::Material::heightMapName |
Height map name.
Shared pointer to height map texture of the model. This can be null.
Definition at line 134 of file OBJ.hpp.
QString OBJ::Material::name |
float OBJ::Material::shininess |
Shininess [0..128].
Definition at line 113 of file OBJ.hpp.
QString OBJ::Material::textureName |
Texture name.
Shared pointer to texture of the model. This can be null.
Definition at line 126 of file OBJ.hpp.
The documentation for this struct was generated from the following file: