1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 09:42:54 +08:00

Update blur parameters

This commit is contained in:
Marvin Schürz 2024-10-22 18:43:36 +02:00
parent d080a8a614
commit 4984537cd3
3 changed files with 8 additions and 5 deletions

View File

@ -337,10 +337,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
{ {
base.UpdateInitialTransforms(); base.UpdateInitialTransforms();
// The backdrop blur opacity should fade in quicker, but the overall alpha should fade in linearly. Body.FadeInFromZero(HitObject.TimeFadeIn);
// By using OutQuad easing on both the blur container & the child, we end up getting a linear fade in.
Body.FadeInFromZero(HitObject.TimeFadeIn, Easing.OutQuad);
Body.FadeInFromZero(HitObject.TimeFadeIn, Easing.OutQuad);
} }
protected override void UpdateStartTimeStateTransforms() protected override void UpdateStartTimeStateTransforms()

View File

@ -2,6 +2,7 @@
// See the LICENCE file in the repository root for full licence text. // See the LICENCE file in the repository root for full licence text.
using osu.Framework.Graphics.Lines; using osu.Framework.Graphics.Lines;
using osuTK;
using osuTK.Graphics; using osuTK.Graphics;
namespace osu.Game.Rulesets.Osu.Skinning.Default namespace osu.Game.Rulesets.Osu.Skinning.Default
@ -14,6 +15,11 @@ namespace osu.Game.Rulesets.Osu.Skinning.Default
private const float border_max_size = 8f; private const float border_max_size = 8f;
private const float border_min_size = 0f; private const float border_min_size = 0f;
protected DrawableSliderPath()
{
EffectBufferScale = new Vector2(0.25f);
}
private Color4 borderColour = Color4.White; private Color4 borderColour = Color4.White;
public Color4 BorderColour public Color4 BorderColour

View File

@ -26,7 +26,7 @@ namespace osu.Game.Rulesets.Osu.Skinning.Legacy
{ {
public LegacyDrawableSliderPath() public LegacyDrawableSliderPath()
{ {
BlurSigma = new Vector2(8f); BlurSigma = new Vector2(16f);
BackdropTintStrength = 0.5f; BackdropTintStrength = 0.5f;