class ent
LightComponent
ent.LightComponent
- 50 properties
- 8 functions
- 3 derived classes
Extends ent.IVisualComponent ent.IPlacedComponent ent.IComponent IScriptable ISerializable
Properties
| Property | Type | Offset | |
|---|---|---|---|
type | ELightType | 0x158 | |
color | Color | 0x140 | |
radius | float | 0x148 | |
unit | ELightUnit | 0x14C | |
intensity | float | 0x150 | |
EV | float | 0x154 | |
temperature | float | 0x144 | |
sceneDiffuse | bool | 0x163 | |
sceneSpecularScale | byte | 0x15E | |
directional | bool | 0x164 | |
roughnessBias | sbyte | 0x160 | |
scaleGI | byte | 0x15C | |
scaleEnvProbes | byte | 0x15D | |
useInTransparents | bool | 0x161 | |
scaleVolFog | byte | 0x15F | |
useInParticles | bool | 0x162 | |
attenuation | rend.LightAttenuation | 0x169 | |
clampAttenuation | bool | 0x165 | |
group | rend.LightGroup | 0x168 | |
areaShape | EAreaLightShape | 0x1B8 | |
areaTwoSided | bool | 0x1BC | |
spotCapsule | bool | 0x1BD | |
sourceRadius | float | 0x1C0 | |
capsuleLength | float | 0x1C4 | |
areaRectSideA | float | 0x1C8 | |
areaRectSideB | float | 0x1CC | |
innerAngle | float | 0x1A4 | |
outerAngle | float | 0x1A8 | |
softness | float | 0x1B4 | |
enableLocalShadows | bool | 0x16A | |
enableLocalShadowsForceStaticsOnly | bool | 0x16B | |
contactShadows | rend.ContactShadowReciever | 0x16C | |
shadowAngle | float | 0x1AC | |
shadowRadius | float | 0x1B0 | |
shadowFadeDistance | float | 0x170 | |
shadowFadeRange | float | 0x174 | |
shadowSoftnessMode | ELightShadowSoftnessMode | 0x178 | |
rayTracedShadowsPlatform | rend.RayTracedShadowsPlatform | 0x17C | |
rayTracingLightSourceRadius | float | 0x180 | |
rayTracingContactShadowRange | float | 0x184 | |
flicker | rend.SLightFlickering | 0x188 | |
envColorGroup | EEnvColorGroup | 0x194 | |
colorGroupSaturation | byte | 0x195 | |
portalAngleCutoff | byte | 0x196 | |
allowDistantLight | bool | 0x197 | |
rayTracingIntensityScale | float | 0x19C | |
pathTracingLightUsage | rend.EPathTracingLightUsage | 0x198 | |
pathTracingOverrideScaleGI | bool | 0x199 | |
rtxdiShadowStartingDistance | float | 0x1A0 | |
isEnabled | bool | 0x8B |
Functions
void SetTemperature(float temperature)RTTIre.Hooks.PlaceVoid( "entLightComponent", "SetTemperature", (LightComponent_SetTemperature x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct LightComponent_SetTemperature( ent.LightComponent self, float temperature );void SetColor(Color color)RTTIre.Hooks.PlaceVoid( "entLightComponent", "SetColor", (LightComponent_SetColor x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct LightComponent_SetColor( ent.LightComponent self, Color color );void SetRadius(float radius)RTTIre.Hooks.PlaceVoid( "entLightComponent", "SetRadius", (LightComponent_SetRadius x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct LightComponent_SetRadius( ent.LightComponent self, float radius );void SetIntensity(float intensity)RTTIre.Hooks.PlaceVoid( "entLightComponent", "SetIntensity", (LightComponent_SetIntensity x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct LightComponent_SetIntensity( ent.LightComponent self, float intensity );void SetFlickerParams(float strength, float period, float offset)RTTIre.Hooks.PlaceVoid( "entLightComponent", "SetFlickerParams", (LightComponent_SetFlickerParams x) => { re.Hooks.CallOriginalVoid(); } ); [Msgpack.Gen] public readonly partial record struct LightComponent_SetFlickerParams( ent.LightComponent self, float strength, float period, float offset );bool OnForceFlicker(FlickerEvent evt)RTTIre.Hooks.Place( "entLightComponent", "OnForceFlicker", (LightComponent_OnForceFlicker x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct LightComponent_OnForceFlicker( ent.LightComponent self, FlickerEvent? evt );bool OnToggleLight(ToggleLightEvent evt)RTTIre.Hooks.Place( "entLightComponent", "OnToggleLight", (LightComponent_OnToggleLight x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct LightComponent_OnToggleLight( ent.LightComponent self, ToggleLightEvent? evt );bool OnToggleLightByName(ToggleLightByNameEvent evt)RTTIre.Hooks.Place( "entLightComponent", "OnToggleLightByName", (LightComponent_OnToggleLightByName x) => { return re.Hooks.CallOriginal<re.msgpack.Bool>(); } ); [Msgpack.Gen] public readonly partial record struct LightComponent_OnToggleLightByName( ent.LightComponent self, ToggleLightByNameEvent? evt );