Assimp
v3.1.1 (June 2014)
|
The material appearance of a primitive. More...
Inherits glTF::Object.
Public Types | |
enum | Technique { Technique_undefined = 0, Technique_BLINN, Technique_PHONG, Technique_LAMBERT, Technique_CONSTANT } |
Techniques defined by KHR_materials_common. More... | |
Public Member Functions | |
Material () | |
void | Read (Value &obj, Asset &r) |
void | SetDefaults () |
![]() | |
virtual bool | IsSpecial () const |
Objects marked as special are not exported (used to emulate the binary body buffer) More... | |
virtual | ~Object () |
Public Attributes | |
TexProperty | ambient |
TexProperty | diffuse |
bool | doubleSided |
TexProperty | emission |
float | shininess |
TexProperty | specular |
Technique | technique |
float | transparency |
bool | transparent |
![]() | |
std::string | id |
The globally unique ID used to reference this object. More... | |
std::string | name |
The user-defined name of this object. More... | |
Additional Inherited Members | |
![]() | |
static const char * | TranslateId (Asset &r, const char *id) |
Maps special IDs to another ID, where needed. Subclasses may override it (statically) More... | |
The material appearance of a primitive.
|
inline |
|
inline |
TexProperty glTF::Material::ambient |
TexProperty glTF::Material::diffuse |
bool glTF::Material::doubleSided |
TexProperty glTF::Material::emission |
float glTF::Material::shininess |
TexProperty glTF::Material::specular |
Technique glTF::Material::technique |
float glTF::Material::transparency |
bool glTF::Material::transparent |