Compare commits

..

No commits in common. "54c8176302a32c8203975dbaa6c9c990f7cbef68" and "5aa47d6ea6ab0d96ff38db400ec31bed38ce3afa" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View File

@ -220,7 +220,6 @@ public class LightMapper
Radius = float.MaxValue,
R2 = float.MaxValue,
LightTableIndex = lightTable.LightCount,
SpotlightInnerAngle = -1f,
};
_lights.Add(light);
@ -289,8 +288,7 @@ public class LightMapper
QuadLit = propAnimLight.QuadLit,
ObjId = id,
LightTableIndex = propAnimLight.LightTableLightIndex,
Anim = true,
SpotlightInnerAngle = -1f,
Anim = true
};
if (propSpotlight != null)
@ -320,7 +318,6 @@ public class LightMapper
QuadLit = propLight.QuadLit,
ObjId = id,
LightTableIndex = lightTable.LightCount,
SpotlightInnerAngle = -1f,
};
if (propSpotAmb != null)

View File

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