Skip to content

Struct ShadowSystem::AreaStruct

ClassList > ShadowSystem > AreaStruct

GPU layout for area light data.

  • #include <ShadowSystem.h>

Public Attributes

Type Name
glm::vec3 color = { 1 }
RGB color in linear space.
float power = { 1.0f }
Luminous intensity.
float ratio = { 1.0f }
Width/height aspect ratio.
glm::mat4 trans = { 1 }
World transform matrix.
int use_shadow = { 1 }
Shadow enabled flag (bool as int)

Public Functions

Type Name
AreaStruct (const Light & light)
Constructs AreaStruct fromLight object.

Public Attributes Documentation

variable color

RGB color in linear space.

glm::vec3 ShadowSystem::AreaStruct::color;


variable power

Luminous intensity.

float ShadowSystem::AreaStruct::power;


variable ratio

Width/height aspect ratio.

float ShadowSystem::AreaStruct::ratio;


variable trans

World transform matrix.

glm::mat4 ShadowSystem::AreaStruct::trans;


variable use_shadow

Shadow enabled flag (bool as int)

int ShadowSystem::AreaStruct::use_shadow;


Public Functions Documentation

function AreaStruct

Constructs AreaStruct fromLight object.

ShadowSystem::AreaStruct::AreaStruct (
    const Light & light
) 

Parameters:

  • light Source light (must be AREALIGHT type)


The documentation for this class was generated from the following file src/render/ShadowSystem.h