Disable legacy slider AA for now

This commit is contained in:
Salman Ahmed 2024-02-27 23:18:11 +03:00
parent 83af9dfb39
commit b3aa9e25d2
1 changed files with 4 additions and 1 deletions

View File

@ -26,7 +26,10 @@ private partial class LegacyDrawableSliderPath : DrawableSliderPath
protected override Color4 ColourAt(float position)
{
// https://github.com/peppy/osu-stable-reference/blob/3ea48705eb67172c430371dcfc8a16a002ed0d3d/osu!/Graphics/Renderers/MmSliderRendererGL.cs#L99
const float aa_width = 3f / 256f;
// float aaWidth = Math.Min(Math.Max(0.5f / PathRadius, 3.0f / 256.0f), 1.0f / 16.0f);
// applying the aa_width constant from stable makes sliders blurry, especially on CS>5. set to zero for now.
// this might be related to SmoothPath applying AA internally, but disabling that does not seem to have much of an effect.
const float aa_width = 0f;
Color4 shadow = new Color4(0, 0, 0, 0.25f);
Color4 outerColour = AccentColour.Darken(0.1f);