This commit is contained in:
TinyHerm committed 2026-11-24 23:40:08 +03:00
commit 1c7a8cf25f
579 files changed
+83196

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
namespace VibranceHud.Licensing;
public sealed class DarkBoostTable
{
private readonly float[] _matrix;
private readonly ushort[] _ramp;
private readonly float[]? _fallback;
public float[] Matrix => (float[])_matrix.Clone();
public ushort[] Ramp => (ushort[])_ramp.Clone();
public float[]? FallbackMatrix => (float[])_fallback?.Clone();
public bool RampIsStraight { get; }
internal DarkBoostTable(float[] matrix, ushort[] ramp, float[]? fallbackMatrix)
{
_matrix = (float[])matrix.Clone();
_ramp = (ushort[])ramp.Clone();
_fallback = (float[])fallbackMatrix?.Clone();
RampIsStraight = DarkBoostPicture.IsStraight(_ramp);
}
}