mirror of
https://github.com/ppy/osu.git
synced 2025-02-19 12:23:13 +08:00
Reduce the scale of background blurs
This commit is contained in:
parent
3fb2f6e320
commit
d1e3718038
@ -16,6 +16,8 @@ namespace osu.Game.Graphics.Backgrounds
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public class Background : CompositeDrawable
|
public class Background : CompositeDrawable
|
||||||
{
|
{
|
||||||
|
private const float blur_scale = 0.5f;
|
||||||
|
|
||||||
public readonly Sprite Sprite;
|
public readonly Sprite Sprite;
|
||||||
|
|
||||||
private readonly string textureName;
|
private readonly string textureName;
|
||||||
@ -64,7 +66,10 @@ namespace osu.Game.Graphics.Backgrounds
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
bufferedContainer?.BlurTo(newBlurSigma, duration, easing);
|
if (bufferedContainer != null)
|
||||||
|
bufferedContainer.FrameBufferScale = newBlurSigma == Vector2.Zero ? Vector2.One : new Vector2(blur_scale);
|
||||||
|
|
||||||
|
bufferedContainer?.BlurTo(newBlurSigma * blur_scale, duration, easing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user