Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
Raven::DirectionalLightGPU Struct Reference

GPU-side directional light data uploaded to the geometry pass UBO. More...

#include <SceneRenderer.h>

Public Attributes

Crux::vec3 Direction
 Normalised world-space light direction.
int CastsShadow
 Non-zero if this light casts a shadow.
Crux::vec3 Color
 Linear RGB colour pre-multiplied by intensity.
float Intensity
 Scalar intensity factor.

Detailed Description

GPU-side directional light data uploaded to the geometry pass UBO.

Member Data Documentation

◆ CastsShadow

int Raven::DirectionalLightGPU::CastsShadow

Non-zero if this light casts a shadow.

◆ Color

Crux::vec3 Raven::DirectionalLightGPU::Color

Linear RGB colour pre-multiplied by intensity.

◆ Direction

Crux::vec3 Raven::DirectionalLightGPU::Direction

Normalised world-space light direction.

◆ Intensity

float Raven::DirectionalLightGPU::Intensity

Scalar intensity factor.


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