Use ToLightData on brush lights

This commit is contained in:
Jarrod Doyle 2024-10-27 16:33:02 +00:00
parent 94b8af0f7f
commit 926497b2c2
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 1 additions and 8 deletions

View File

@ -170,14 +170,7 @@ class Program
}; };
lights.Add(light); lights.Add(light);
lightTable.AddLight(new WorldRep.LightTable.LightData lightTable.AddLight(light.ToLightData(32.0f));
{
Location = light.Position,
Direction = light.SpotlightDir,
Color = light.Color / 32.0f, // TODO: This is based on light_scale config var
InnerAngle = -1.0f,
Radius = 0,
});
} }
private static void ProcessObjectLight( private static void ProcessObjectLight(