Skip to content

LightComponent

Class in Engine · Engine.LightComponent · native, abstract

Object › Component › ActorComponent › LightComponent

Subclasses: DirectionalLightComponent, PointLightComponent, SkyLightComponent, SphericalHarmonicLightComponent

Using it from Lua
h7.find_all("LightComponent")            -- live instances
h7.find_class("Engine.LightComponent")   -- the class
h7.hook("Engine.LightComponent.GetDirection", fn)

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

FieldType
bInitializedbool
BSPbool
Staticbool
Dynamicbool
CompositeDynamicbool
Skyboxbool
Unnamed_1bool
Unnamed_2bool
Unnamed_3bool
Unnamed_4bool
Unnamed_5bool
Unnamed_6bool
Cinematic_1bool
Cinematic_2bool
Cinematic_3bool
Cinematic_4bool
Cinematic_5bool
Cinematic_6bool
Cinematic_7bool
Cinematic_8bool
Cinematic_9bool
Cinematic_10bool
Gameplay_1bool
Gameplay_2bool
Gameplay_3bool
Gameplay_4bool
Crowdbool

Properties

NameTypeNotes
bAffectCompositeShadowDirectionbool
bAllowCompositingIntoDLEbool
bAllowPreShadowbool
bCanAffectDynamicPrimitivesOutsideDynamicChannelboolconst
bCastCompositeShadowbool
bEnabledboolconst
bExplicitlyAssignedLightboolconst, protected
bForceDynamicLightboolconst
bHasLightEverBeenBuiltIntoLightMapboolconst
BloomScalefloat
BloomScreenBlendThresholdfloat
BloomThresholdfloat
BloomTintcolor
bNonModulatedSelfShadowingbool
bPrecomputedLightingIsValidboolconst, protected
bRenderLightShaftsbool
Brightnessfloatconst
bSelfShadowOnlybool
bUseImageReflectionSpecularbool
CastDynamicShadowsbool
CastShadowsboolconst
CastStaticShadowsboolconst
FunctionLightFunctionconst
LightAffectsClassificationELightAffectsClassificationconst, editconst
LightColorcolorconst
LightEnvironmentLightEnvironmentComponentconst
LightGuidguidconst
LightingChannelsLightingChannelContainerconst
LightListIndexintconst, native
LightmapGuidguidconst
LightShadowModeELightShadowMode
LightToWorldmatrixconst, transient, native
MaxShadowResolutionint
MinShadowResolutionint
ModShadowColorLinearColor
ModShadowFadeoutExponentfloat
ModShadowFadeoutTimefloat
OcclusionDepthRangefloat
OcclusionMaskDarknessfloat
RadialBlurPercentfloat
ReflectionSpecularBrightnessfloat
SceneInfopointerconst, transient, native, private
ShadowFadeResolutionint
ShadowFilterQualityEShadowFilterQuality
ShadowProjectionTechniqueEShadowProjectionTechnique
UseDirectLightMapboolconst
WorldToLightmatrixconst, transient, native

Functions

NameDeclaration
GetDirectionfinal native function vector GetDirection()
GetOriginfinal native function vector GetOrigin()
OnUpdatePropertyBloomScalefunction OnUpdatePropertyBloomScale()
OnUpdatePropertyBloomTintfunction OnUpdatePropertyBloomTint()
OnUpdatePropertyBrightnessfunction OnUpdatePropertyBrightness()
OnUpdatePropertyLightColorfunction OnUpdatePropertyLightColor()
OnUpdatePropertyOcclusionMaskDarknessfunction OnUpdatePropertyOcclusionMaskDarkness()
SetEnabledfinal native function SetEnabled(bool bSetEnabled)
SetLightPropertiesfinal native function SetLightProperties(optional float NewBrightness = Brightness, optional color NewLightColor = LightColor, optional LightFunction NewLightFunction = Function)
UpdateColorAndBrightnessfinal native function UpdateColorAndBrightness()
UpdateLightShaftParametersfinal 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

FromMembers
ActorComponent7 properties, 4 functions
Component2 properties, 0 functions
Object13 properties, 308 functions