Fix incorrect coloured lights

This commit is contained in:
Jarrod Doyle 2024-12-26 21:15:53 +00:00
parent 5aa47d6ea6
commit 8b84e5ce3a
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 2 additions and 2 deletions

View File

@ -14,8 +14,8 @@ public static class Utils
var color = hue switch var color = hue switch
{ {
< 1 => new Vector3(1f - hue, hue, 0), < 1 => new Vector3(1f - hue, hue, 0),
< 2 => new Vector3(2f - hue, hue - 1f, 0), < 2 => new Vector3(0, 2f - hue, hue - 1f),
_ => new Vector3(3f - hue, hue - 2, 0), _ => new Vector3(hue - 2f, 0, 3f - hue),
}; };
color *= saturation; color *= saturation;