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

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 ()
 
- 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

vec4 color
 
float constantAttenuation
 
float distance
 
float falloffAngle
 
float falloffExponent
 
float linearAttenuation
 
float quadraticAttenuation
 
Type type
 
- 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

A light (from KHR_materials_common extension)

Member Enumeration Documentation

◆ Type

Enumerator
Type_undefined 
Type_ambient 
Type_directional 
Type_point 
Type_spot 

Constructor & Destructor Documentation

◆ Light()

glTF::Light::Light ( )
inline

Member Function Documentation

◆ Read()

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

◆ SetDefaults()

void glTF::Light::SetDefaults ( )
inline

Member Data Documentation

◆ color

vec4 glTF::Light::color

◆ constantAttenuation

float glTF::Light::constantAttenuation

◆ distance

float glTF::Light::distance

◆ falloffAngle

float glTF::Light::falloffAngle

◆ falloffExponent

float glTF::Light::falloffExponent

◆ linearAttenuation

float glTF::Light::linearAttenuation

◆ quadraticAttenuation

float glTF::Light::quadraticAttenuation

◆ type

Type glTF::Light::type

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