Assimp  v4.1. (December 2018)
glTF2::Material Struct Reference

The material appearance of a primitive. More...

Inherits glTF2::Object.

Public Member Functions

 Material ()
 
void Read (Value &obj, Asset &r)
 
void SetDefaults ()
 
- Public Member Functions inherited from glTF2::Object
virtual bool IsSpecial () const
 Objects marked as special are not exported (used to emulate the binary body buffer) More...
 
virtual ~Object ()
 

Public Attributes

float alphaCutoff
 
std::string alphaMode
 
bool doubleSided
 
vec3 emissiveFactor
 
TextureInfo emissiveTexture
 
NormalTextureInfo normalTexture
 
OcclusionTextureInfo occlusionTexture
 
PbrMetallicRoughness pbrMetallicRoughness
 
Nullable< PbrSpecularGlossinesspbrSpecularGlossiness
 
bool unlit
 
- Public Attributes inherited from glTF2::Object
std::string id
 The globally unique ID used to reference this object. More...
 
int index
 The index of this object within its property container. More...
 
std::string name
 The user-defined name of this object. More...
 
int oIndex
 The original index of this object defined in the JSON. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from glTF2::Object
static const char * TranslateId (Asset &, 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.

Constructor & Destructor Documentation

◆ Material()

glTF2::Material::Material ( )
inline

Member Function Documentation

◆ Read()

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

◆ SetDefaults()

void glTF2::Material::SetDefaults ( )
inline

Member Data Documentation

◆ alphaCutoff

float glTF2::Material::alphaCutoff

◆ alphaMode

std::string glTF2::Material::alphaMode

◆ doubleSided

bool glTF2::Material::doubleSided

◆ emissiveFactor

vec3 glTF2::Material::emissiveFactor

◆ emissiveTexture

TextureInfo glTF2::Material::emissiveTexture

◆ normalTexture

NormalTextureInfo glTF2::Material::normalTexture

◆ occlusionTexture

OcclusionTextureInfo glTF2::Material::occlusionTexture

◆ pbrMetallicRoughness

PbrMetallicRoughness glTF2::Material::pbrMetallicRoughness

◆ pbrSpecularGlossiness

Nullable<PbrSpecularGlossiness> glTF2::Material::pbrSpecularGlossiness

◆ unlit

bool glTF2::Material::unlit

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