SetSoftSourceRadius - GalaxHD551/lightstreamer GitHub Wiki
Description
Soft Source Radius is a way to blur out a highlight that you feel is too sharp. It can be useful on the occasional stray light that has too sharp of a highlight. Also keep in mind that setting this to a value greater than one will make the light not physically correct.
Syntax
lr.SetSoftSourceRadius(lightid, radius)
Parameters
-
lightid
The light identifier.
-
radius
The soft source radius.
Return Value
- Returns true on success.
Exemple
lr = ImportPackage("lightstreamer")
function OnPackageStart()
local light = lr.CreateLight("POINTLIGHT", 126016.046875, 81475.203125, 1550.0)
lr.SetSoftSourceRadius(light, 80)
end
AddEvent("OnPackageStart", OnPackageStart)