Use ToLightData on brush lights
This commit is contained in:
parent
94b8af0f7f
commit
926497b2c2
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue