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

A light (from KHR_lights_punctual extension) More...

Inherits glTF2::Object.

Public Types

enum  Type { Directional , Point , Spot }
 

Public Member Functions

 Light ()
 
void Read (Value &obj, Asset &r)
 
- 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

vec3 color
 
float innerConeAngle
 
float intensity
 
float outerConeAngle
 
Nullable< floatrange
 
Type type
 
- 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

A light (from KHR_lights_punctual extension)

Member Enumeration Documentation

◆ Type

Enumerator
Directional 
Point 
Spot 

Constructor & Destructor Documentation

◆ Light()

glTF2::Light::Light ( )
inline

Member Function Documentation

◆ Read()

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

Member Data Documentation

◆ color

vec3 glTF2::Light::color

◆ innerConeAngle

float glTF2::Light::innerConeAngle

◆ intensity

float glTF2::Light::intensity

◆ outerConeAngle

float glTF2::Light::outerConeAngle

◆ range

Nullable<float> glTF2::Light::range

◆ type

Type glTF2::Light::type

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