LightComponent¶
Class in Engine · Engine.LightComponent · native, abstract
Object › Component › ActorComponent › LightComponent
Subclasses: DirectionalLightComponent, PointLightComponent, SkyLightComponent, SphericalHarmonicLightComponent
Using it from Lua
Enums¶
ELightAffectsClassification
LAC_USER_SELECTED = 0, LAC_DYNAMIC_AFFECTING = 1, LAC_STATIC_AFFECTING = 2, LAC_DYNAMIC_AND_STATIC_AFFECTING = 3
ELightShadowMode
LightShadow_Normal = 0, LightShadow_Modulate = 1, LightShadow_ModulateBetter = 2
EShadowFilterQuality
SFQ_Low = 0, SFQ_Medium = 1, SFQ_High = 2
EShadowProjectionTechnique
ShadowProjTech_Default = 0, ShadowProjTech_PCF = 1, ShadowProjTech_VSM = 2, ShadowProjTech_BPCF_Low = 3, ShadowProjTech_BPCF_Medium = 4, ShadowProjTech_BPCF_High = 5
Structs¶
LightingChannelContainer
| Field | Type |
|---|---|
bInitialized | bool |
BSP | bool |
Static | bool |
Dynamic | bool |
CompositeDynamic | bool |
Skybox | bool |
Unnamed_1 | bool |
Unnamed_2 | bool |
Unnamed_3 | bool |
Unnamed_4 | bool |
Unnamed_5 | bool |
Unnamed_6 | bool |
Cinematic_1 | bool |
Cinematic_2 | bool |
Cinematic_3 | bool |
Cinematic_4 | bool |
Cinematic_5 | bool |
Cinematic_6 | bool |
Cinematic_7 | bool |
Cinematic_8 | bool |
Cinematic_9 | bool |
Cinematic_10 | bool |
Gameplay_1 | bool |
Gameplay_2 | bool |
Gameplay_3 | bool |
Gameplay_4 | bool |
Crowd | bool |
Properties¶
| Name | Type | Notes |
|---|---|---|
bAffectCompositeShadowDirection | bool | |
bAllowCompositingIntoDLE | bool | |
bAllowPreShadow | bool | |
bCanAffectDynamicPrimitivesOutsideDynamicChannel | bool | const |
bCastCompositeShadow | bool | |
bEnabled | bool | const |
bExplicitlyAssignedLight | bool | const, protected |
bForceDynamicLight | bool | const |
bHasLightEverBeenBuiltIntoLightMap | bool | const |
BloomScale | float | |
BloomScreenBlendThreshold | float | |
BloomThreshold | float | |
BloomTint | color | |
bNonModulatedSelfShadowing | bool | |
bPrecomputedLightingIsValid | bool | const, protected |
bRenderLightShafts | bool | |
Brightness | float | const |
bSelfShadowOnly | bool | |
bUseImageReflectionSpecular | bool | |
CastDynamicShadows | bool | |
CastShadows | bool | const |
CastStaticShadows | bool | const |
Function | LightFunction | const |
LightAffectsClassification | ELightAffectsClassification | const, editconst |
LightColor | color | const |
LightEnvironment | LightEnvironmentComponent | const |
LightGuid | guid | const |
LightingChannels | LightingChannelContainer | const |
LightListIndex | int | const, native |
LightmapGuid | guid | const |
LightShadowMode | ELightShadowMode | |
LightToWorld | matrix | const, transient, native |
MaxShadowResolution | int | |
MinShadowResolution | int | |
ModShadowColor | LinearColor | |
ModShadowFadeoutExponent | float | |
ModShadowFadeoutTime | float | |
OcclusionDepthRange | float | |
OcclusionMaskDarkness | float | |
RadialBlurPercent | float | |
ReflectionSpecularBrightness | float | |
SceneInfo | pointer | const, transient, native, private |
ShadowFadeResolution | int | |
ShadowFilterQuality | EShadowFilterQuality | |
ShadowProjectionTechnique | EShadowProjectionTechnique | |
UseDirectLightMap | bool | const |
WorldToLight | matrix | const, transient, native |
Functions¶
| Name | Declaration |
|---|---|
GetDirection | final native function vector GetDirection() |
GetOrigin | final native function vector GetOrigin() |
OnUpdatePropertyBloomScale | function OnUpdatePropertyBloomScale() |
OnUpdatePropertyBloomTint | function OnUpdatePropertyBloomTint() |
OnUpdatePropertyBrightness | function OnUpdatePropertyBrightness() |
OnUpdatePropertyLightColor | function OnUpdatePropertyLightColor() |
OnUpdatePropertyOcclusionMaskDarkness | function OnUpdatePropertyOcclusionMaskDarkness() |
SetEnabled | final native function SetEnabled(bool bSetEnabled) |
SetLightProperties | final native function SetLightProperties(optional float NewBrightness = Brightness, optional color NewLightColor = LightColor, optional LightFunction NewLightFunction = Function) |
UpdateColorAndBrightness | final native function UpdateColorAndBrightness() |
UpdateLightShaftParameters | final native function UpdateLightShaftParameters() |
Default values¶
LightAffectsClassification=LAC_USER_SELECTED
Brightness=1.0
LightColor=(R=255,G=255,B=255)
bEnabled=TRUE
CastShadows=TRUE
CastStaticShadows=TRUE
CastDynamicShadows=TRUE
bCastCompositeShadow=TRUE
bAffectCompositeShadowDirection=TRUE
bForceDynamicLight=FALSE
UseDirectLightMap=FALSE
bPrecomputedLightingIsValid=TRUE
bAllowCompositingIntoDLE=TRUE
LightingChannels=(BSP=TRUE,Static=TRUE,Dynamic=TRUE,CompositeDynamic=TRUE,bInitialized=TRUE)
LightShadowMode=LightShadow_Modulate
ModShadowFadeoutExponent=3.0
ShadowProjectionTechnique=ShadowProjTech_Default
ShadowFilterQuality=SFQ_Low
bRenderLightShafts=false
OcclusionDepthRange=20000
BloomScale=2
BloomThreshold=0
BloomScreenBlendThreshold=1
BloomTint=(R=255,G=255,B=255)
RadialBlurPercent=100
OcclusionMaskDarkness=.3
bUseImageReflectionSpecular=false
ReflectionSpecularBrightness=.2
Inherited¶
| From | Members |
|---|---|
| ActorComponent | 7 properties, 4 functions |
| Component | 2 properties, 0 functions |
| Object | 13 properties, 308 functions |