Fling Engine  0.00.1
Fling Engine is a game engine written in Vulkan
Public Member Functions | Data Fields | Private Attributes
Fling::PointLight Struct Reference

Simple representation of a point light in Light Vox. More...

#include <PointLight.hpp>

Public Member Functions

template<class Archive >
void serialize (Archive &t_Archive)
 Serilazation to an archive. More...
 
FORCEINLINE void SetPos (const glm::vec4 &t_Pos)
 

Data Fields

glm::vec4 DiffuseColor { 1.0f }
 Diffuse color of this point light, RBA on a scale of 0.0 to 1.0. More...
 
float Intensity = 10.0f
 
float Range = 5.0f
 

Private Attributes

glm::vec4 Pos { 0.0f }
 The position of this point light will be set from it's Transform component. More...
 

Detailed Description

Simple representation of a point light in Light Vox.

The colors and position have to be glm::vec4's because of shader alignment things

Member Function Documentation

◆ 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

Field Documentation

◆ 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: