From 8b84e5ce3a9857cca95b383843c523e96f91aef4 Mon Sep 17 00:00:00 2001 From: Jarrod Doyle Date: Thu, 26 Dec 2024 21:15:53 +0000 Subject: [PATCH] Fix incorrect coloured lights --- KeepersCompound.Lightmapper/Utils.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/KeepersCompound.Lightmapper/Utils.cs b/KeepersCompound.Lightmapper/Utils.cs index cf648fd..faa7122 100644 --- a/KeepersCompound.Lightmapper/Utils.cs +++ b/KeepersCompound.Lightmapper/Utils.cs @@ -14,8 +14,8 @@ public static class Utils var color = hue switch { < 1 => new Vector3(1f - hue, hue, 0), - < 2 => new Vector3(2f - hue, hue - 1f, 0), - _ => new Vector3(3f - hue, hue - 2, 0), + < 2 => new Vector3(0, 2f - hue, hue - 1f), + _ => new Vector3(hue - 2f, 0, 3f - hue), }; color *= saturation;