Light structure.
More...
#include <Structs.h>
Public Attributes |
Colorf | Ambient |
| Ambient color.
|
Colorf | Diffuse |
| Diffuse color.
|
Colorf | Specular |
| Specular color.
|
math::Vector | Position |
| Light Position. This value dose not needed for directional light.
|
math::Vector | Direction |
| Light Direction. This value dose not needed for point light.
|
float | Range |
| The distance that light can go. This value dose not needed for directional light.
|
float | Theta |
| The smaller cone in the spot light.
|
float | Phi |
| The bigger cone in the spot light.
|
LightType | Type |
| The type of the light.
|
int | Index |
| The light index TODO: this must be deleted after sorting the lights.
|
Detailed Description
Light structure.
Definition at line 258 of file Structs.h.
Member Data Documentation
Colorf kge::gfx::LightData::Ambient |
Colorf kge::gfx::LightData::Diffuse |
Light Direction. This value dose not needed for point light.
Definition at line 269 of file Structs.h.
int kge::gfx::LightData::Index |
The light index TODO: this must be deleted after sorting the lights.
Definition at line 279 of file Structs.h.
float kge::gfx::LightData::Phi |
The bigger cone in the spot light.
Definition at line 275 of file Structs.h.
Light Position. This value dose not needed for directional light.
Definition at line 267 of file Structs.h.
float kge::gfx::LightData::Range |
The distance that light can go. This value dose not needed for directional light.
Definition at line 271 of file Structs.h.
Colorf kge::gfx::LightData::Specular |
float kge::gfx::LightData::Theta |
The smaller cone in the spot light.
Definition at line 273 of file Structs.h.
The type of the light.
Definition at line 277 of file Structs.h.
The documentation for this struct was generated from the following file: