Simple representation of a point light in Light Vox.
More...
#include <PointLight.hpp>
|
| template<class Archive > |
| void | serialize (Archive &t_Archive) |
| | Serilazation to an archive. More...
|
| |
| FORCEINLINE void | SetPos (const glm::vec4 &t_Pos) |
| |
|
| glm::vec4 | Pos { 0.0f } |
| | The position of this point light will be set from it's Transform component. More...
|
| |
Simple representation of a point light in Light Vox.
The colors and position have to be glm::vec4's because of shader alignment things
◆ serialize()
template<class Archive >
| void Fling::PointLight::serialize |
( |
Archive & |
t_Archive | ) |
|
Serilazation to an archive.
◆ SetPos()
| FORCEINLINE void Fling::PointLight::SetPos |
( |
const glm::vec4 & |
t_Pos | ) |
|
|
inline |
◆ DiffuseColor
| glm::vec4 Fling::PointLight::DiffuseColor { 1.0f } |
Diffuse color of this point light, RBA on a scale of 0.0 to 1.0.
◆ Intensity
| float Fling::PointLight::Intensity = 10.0f |
◆ Pos
| glm::vec4 Fling::PointLight::Pos { 0.0f } |
|
private |
The position of this point light will be set from it's Transform component.
set per frame
◆ Range
| float Fling::PointLight::Range = 5.0f |
The documentation for this struct was generated from the following file: