Apply light property position offset

This commit is contained in:
Jarrod Doyle 2024-09-25 18:50:30 +01:00
parent fa360b02cc
commit 196e97a8fd
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 3 additions and 1 deletions

View File

@ -117,9 +117,11 @@ class Program
{
propLightColor ??= new PropLightColor { Hue = 0, Saturation = 0 };
// TODO: There's still some lights that aren't positioned right such as Streetlamp.
// Perhaps there's a light point specified in model files?
var light = new Light
{
position = brush.position,
position = brush.position + propLight.Offset,
color = HsbToRgb(propLightColor.Hue, propLightColor.Saturation, propLight.Brightness),
radius = propLight.Radius,
r2 = propLight.Radius * propLight.Radius,