Assimp
v3.1.1 (June 2014)
|
A light (from KHR_materials_common extension) More...
Inherits glTF::Object.
Public Types | |
enum | Type { Type_undefined, Type_ambient, Type_directional, Type_point, Type_spot } |
Public Member Functions | |
Light () | |
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 | |
vec4 | color |
float | constantAttenuation |
float | distance |
float | falloffAngle |
float | falloffExponent |
float | linearAttenuation |
float | quadraticAttenuation |
Type | type |
![]() | |
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... | |
A light (from KHR_materials_common extension)
enum glTF::Light::Type |
|
inline |
|
inline |
vec4 glTF::Light::color |
float glTF::Light::constantAttenuation |
float glTF::Light::distance |
float glTF::Light::falloffAngle |
float glTF::Light::falloffExponent |
float glTF::Light::linearAttenuation |
float glTF::Light::quadraticAttenuation |
Type glTF::Light::type |