|
Assimp
v4.1. (December 2018)
|
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 () |
Public Member Functions inherited from glTF::Object | |
| 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 |
Public Attributes inherited from glTF::Object | |
| 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 Public Member Functions inherited from glTF::Object | |
| static const char * | TranslateId (Asset &, 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 |