diff --git a/KeepersCompound.Lightmapper/Program.cs b/KeepersCompound.Lightmapper/Program.cs index 14978e8..1a33624 100644 --- a/KeepersCompound.Lightmapper/Program.cs +++ b/KeepersCompound.Lightmapper/Program.cs @@ -324,9 +324,9 @@ class Program { strength /= 2; } - strength = Math.Min(1.0f, strength); var c = light.color * strength; + c = Vector3.Min(Vector3.One * 255, c); lightmap.AddLight(0, x, y, (byte)c.X, (byte)c.Y, (byte)c.Z); } }