Skip to content

Struct ShadowSystem::PointStruct

ClassList > ShadowSystem > PointStruct

GPU layout for point light data.

  • #include <ShadowSystem.h>

Public Attributes

Type Name
glm::vec3 color = { 1 }
RGB color in linear space.
glm::vec3 pos = { 0 }
World position.
float power = { 1.0f }
Luminous intensity.
float radius = { 0.05f }
Physical radius for soft shadows.
int use_shadow = { 1 }
Shadow enabled flag (bool as int)

Public Functions

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

Public Attributes Documentation

variable color

RGB color in linear space.

glm::vec3 ShadowSystem::PointStruct::color;


variable pos

World position.

glm::vec3 ShadowSystem::PointStruct::pos;


variable power

Luminous intensity.

float ShadowSystem::PointStruct::power;


variable radius

Physical radius for soft shadows.

float ShadowSystem::PointStruct::radius;


variable use_shadow

Shadow enabled flag (bool as int)

int ShadowSystem::PointStruct::use_shadow;


Public Functions Documentation

function PointStruct

Constructs PointStruct fromLight object.

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

Parameters:

  • light Source light (must be POINTLIGHT type)


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