LocalLight
Description
Table structure used for render.SetLocalModelLights.
Members
Vector color
The color of the light source (x is red, y is green, z is blue). Values are not restricted to a specific range, higher values will result in a brighter light.
Default: vector_origin
Vector dir
The direction of the light. Only required for directional and spot lights.
Default: vector_origin
number range
The maximum range of the light source. Does not actually control light attenuation. Usually left at 0 for infinite range.
Default: 0
number angularFalloff
Angular falloff exponent for spot lights. Higher values result in a sharper transition between the inner cone and the outer cone.
Default: 5
number innerAngle
The inner cone angle for spot lights, in degrees. No angular falloff will occur inside that cone.
Default: 45
number quadraticFalloff
The quadratic term of the light falloff. This will only be used if fiftyPercentDistance and zeroPercentDistance are not supplied, and allows finer control over light attenuation.
Default: 0
number linearFalloff
The linear term of the light falloff. This will only be used if fiftyPercentDistance and zeroPercentDistance are not supplied, and allows finer control over light attenuation.
Default: 0
number constantFalloff
The constant term of the light falloff. This will only be used if fiftyPercentDistance and zeroPercentDistance are not supplied, and allows finer control over light attenuation.
Default: 1