From 69b29c15f6b873b4113b8c307b4817a26f39c34b Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Sun, 29 Sep 2024 11:02:47 +0100 Subject: [PATCH] Fix incorrect anim light brightness and light table mapping --- KeepersCompound.Lightmapper/Program.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/KeepersCompound.Lightmapper/Program.cs b/KeepersCompound.Lightmapper/Program.cs index 08bf91e..55382bc 100644 --- a/KeepersCompound.Lightmapper/Program.cs +++ b/KeepersCompound.Lightmapper/Program.cs @@ -1,4 +1,4 @@ -using System.Diagnostics; +using System.Diagnostics; using System.Numerics; using KeepersCompound.LGS; using KeepersCompound.LGS.Database; @@ -24,7 +24,7 @@ class Program public float spotlightOuterAngle; public bool anim; - public int animObjId; + public int animLightTableIndex; } static void Main(string[] args) @@ -200,12 +200,12 @@ class Program var light = new Light { position = baseLight.position + propAnimLight.Offset, - color = HsbToRgb(propLightColor.Hue, propLightColor.Saturation, propAnimLight.Brightness), + color = HsbToRgb(propLightColor.Hue, propLightColor.Saturation, propAnimLight.MaxBrightness), innerRadius = propAnimLight.InnerRadius, radius = propAnimLight.Radius, r2 = propAnimLight.Radius * propAnimLight.Radius, anim = true, - animObjId = id, + animLightTableIndex = propAnimLight.LightTableLightIndex, }; if (propAnimLight.Radius == 0) {