Compare commits
No commits in common. "54c8176302a32c8203975dbaa6c9c990f7cbef68" and "5aa47d6ea6ab0d96ff38db400ec31bed38ce3afa" have entirely different histories.
54c8176302
...
5aa47d6ea6
|
@ -220,7 +220,6 @@ public class LightMapper
|
||||||
Radius = float.MaxValue,
|
Radius = float.MaxValue,
|
||||||
R2 = float.MaxValue,
|
R2 = float.MaxValue,
|
||||||
LightTableIndex = lightTable.LightCount,
|
LightTableIndex = lightTable.LightCount,
|
||||||
SpotlightInnerAngle = -1f,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
_lights.Add(light);
|
_lights.Add(light);
|
||||||
|
@ -289,8 +288,7 @@ public class LightMapper
|
||||||
QuadLit = propAnimLight.QuadLit,
|
QuadLit = propAnimLight.QuadLit,
|
||||||
ObjId = id,
|
ObjId = id,
|
||||||
LightTableIndex = propAnimLight.LightTableLightIndex,
|
LightTableIndex = propAnimLight.LightTableLightIndex,
|
||||||
Anim = true,
|
Anim = true
|
||||||
SpotlightInnerAngle = -1f,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (propSpotlight != null)
|
if (propSpotlight != null)
|
||||||
|
@ -320,7 +318,6 @@ public class LightMapper
|
||||||
QuadLit = propLight.QuadLit,
|
QuadLit = propLight.QuadLit,
|
||||||
ObjId = id,
|
ObjId = id,
|
||||||
LightTableIndex = lightTable.LightCount,
|
LightTableIndex = lightTable.LightCount,
|
||||||
SpotlightInnerAngle = -1f,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
if (propSpotAmb != null)
|
if (propSpotAmb != null)
|
||||||
|
|
|
@ -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(0, 2f - hue, hue - 1f),
|
< 2 => new Vector3(2f - hue, hue - 1f, 0),
|
||||||
_ => new Vector3(hue - 2f, 0, 3f - hue),
|
_ => new Vector3(3f - hue, hue - 2, 0),
|
||||||
};
|
};
|
||||||
|
|
||||||
color *= saturation;
|
color *= saturation;
|
||||||
|
|
Loading…
Reference in New Issue