mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
Fix Humanoid Heisentest (#43919)
* Expand epsilon * Increase epsilon slightly more * Add more comment
This commit is contained in:
parent
ba4cb2ca2f
commit
4e4298a32d
1 changed files with 3 additions and 3 deletions
|
|
@ -314,10 +314,10 @@ internal static class SkinColorationUtils
|
|||
public const float EpsilonHue = 0.00277f;
|
||||
|
||||
/// <summary>
|
||||
/// A value derived by dividing 1 by 256.
|
||||
/// Due to the way these values are stored and deconstructed we can't expect much more precision than this..
|
||||
/// Due to RGB colors being clamped to 8 bits, precision is lost during transformation to HSL or HSV.
|
||||
/// The precision of the result is approximately 1/180.
|
||||
/// </summary>
|
||||
public const float Epsilon = 0.00390625f;
|
||||
public const float Epsilon = 0.0056f;
|
||||
|
||||
/// <summary>
|
||||
/// Checks if a hue value is within a specified range, correctly handling ranges that wrap around 1.0 (e.g., reds).
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue