| Fling Engine 0.00.1 Fling Engine is a game engine written in Vulkan

Public Member Functions | Data Fields
Fling::DirectionalLight Struct Reference

Simple representation of a directional light for Fling. More...

`#include <DirectionalLight.hpp>`

## Public Member Functions
template<class Archive >
void | serialize (Archive &t_Archive)
| Serilazation to an archive. More...

## Data Fields
glm::vec4 | DiffuseColor { 1.0f }
glm::vec4 | Direction { 1.0f, -1.0f, -0.5f, 1.0f }
float | Intensity = 1.0f

## Detailed Description

Simple representation of a directional light for Fling.

Needs to be 16 bytes aligned for Vulkan

## Member Function Documentation

## ◆ serialize()

template<class Archive >

void Fling::DirectionalLight::serialize | ( | Archive & | t_Archive | ) |

Serilazation to an archive.

## Field Documentation

## ◆ DiffuseColor

glm::vec4 Fling::DirectionalLight::DiffuseColor { 1.0f }

## ◆ Direction

glm::vec4 Fling::DirectionalLight::Direction { 1.0f, -1.0f, -0.5f, 1.0f }

## ◆ Intensity

float Fling::DirectionalLight::Intensity = 1.0f

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

- FlingEngine/Graphics/inc/Lighting/DirectionalLight.hpp