LightComponentData

Initialization data structure for the LightComponent.

File location: framework/cauldron/framework/inc/core/components/lightcomponent.h

Detailed description

Initialization data structure for the LightComponent.

Data fields

Type

Description

LightType

Type
Type of light this component represents.

Vec3

Color
Light color.

float

SpotInnerConeAngle
Inner cone angle for spotlight representation.

float

SpotOuterConeAngle
Outer cone angle for spotlight representation.

float

Intensity
Light intensity.

float

Range
Light range (-1 indicates infinite point source limited by intensity)

float

DepthBias
Depth bias to apply to light shadow maps.

int32_t

ShadowResolution
Light shadow map resolution.

std::vector<int>

ShadowMapIndex
Light shadow map index from the shadow pool.

std::vector<int32_t>

ShadowMapCellIndex
Light shadow map cell index from the shadow pool.

std::vector<Rect >

ShadowMapRect
Light shadow map rect from the shadow pool.

std::wstring

Name
Light name.