Assimp  v3.1.1 (June 2014)
glTF::Material Struct Reference

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 &r, const char *id)
 Maps special IDs to another ID, where needed. Subclasses may override it (statically) More...
 

Detailed Description

The material appearance of a primitive.

Member Enumeration Documentation

§ Technique

Techniques defined by KHR_materials_common.

Enumerator
Technique_undefined 
Technique_BLINN 
Technique_PHONG 
Technique_LAMBERT 
Technique_CONSTANT 

Constructor & Destructor Documentation

§ Material()

glTF::Material::Material ( )
inline

Member Function Documentation

§ Read()

void glTF::Material::Read ( Value obj,
Asset r 
)
inline

§ SetDefaults()

void glTF::Material::SetDefaults ( )
inline

Member Data Documentation

§ ambient

TexProperty glTF::Material::ambient

§ diffuse

TexProperty glTF::Material::diffuse

§ doubleSided

bool glTF::Material::doubleSided

§ emission

TexProperty glTF::Material::emission

§ shininess

float glTF::Material::shininess

§ specular

TexProperty glTF::Material::specular

§ technique

Technique glTF::Material::technique

§ transparency

float glTF::Material::transparency

§ transparent

bool glTF::Material::transparent

The documentation for this struct was generated from the following files: