Light - powerof3/PapyrusExtenderSSE GitHub Wiki
Getters
GetLightFade
- Gets light fade (brightness).
float Function GetLightFade(Light akLight) global native
GetLightFOV
float Function GetLightFOV(Light akLight) global native
GetLightRadius
- Gets light radius as float
float Function GetLightRadius(Light akLight) global native
GetLightRGB
- Gets light color as RGB array [0-255].
int[] Function GetLightRGB(Light akLight) global native
GetLightShadowDepthBias
- Gets depth bias
- Returns 1 if not set.
float Function GetLightShadowDepthBias(ObjectReference akLightObject) global native
GetLightType
Type |
Value |
HemiShadow |
1 |
Omni |
2 |
OmniShadow |
3 |
Spot |
4 |
SpotShadow |
5 |
int Function GetLightType(Light akLight) global native
Setters
SetLightColor
Function SetLightColor(Light akLight, ColorForm akColorform) global native
SetLightFade
Function SetLightFade(Light akLight, float afRange) global native
SetLightFOV
Function SetLightFOV(Light akLight, float afFOV) global native
SetLightRadiua
- Sets light radius (minimum light radius is 16) .
Function SetLightRadius(Light akLight, float afRadius) global native
SetLightRGB
- Sets light color using RGB array [0-255].
- Array must contain 3 elements (r,g,b).
Function SetLightRGB(Light akLight, int[] aiRGB) global native
SetLightShadowDepthBias
- sets depth bias on light reference. Creates new depth bias extradata on lights that don't have it set.
Function SetLightShadowDepthBias(ObjectReference akLightObject, float afDepthBias) global native
SetLightType
- Sets light type.
- Does not persist between game sessions.
Function SetLightType(Light akLight, int aiLightType) global native
DEPRECATED
GetLightColor
ColorForm Function GetLightColor(Light akLight) global native