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

Adjust backdrop blur values a bit more

This commit is contained in:
Marvin Schürz 2024-10-19 01:51:45 +02:00
parent c4af3182cf
commit f97cf4ec29

View File

@ -12,6 +12,7 @@ using osu.Framework.Bindables;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Layout;
using osu.Framework.Utils;
using osu.Game.Audio;
using osu.Game.Graphics.Containers;
using osu.Game.Rulesets.Judgements;
@ -22,6 +23,7 @@ using osu.Game.Rulesets.Osu.Skinning.Default;
using osu.Game.Rulesets.Scoring;
using osu.Game.Skinning;
using osuTK;
using osuTK.Graphics;
namespace osu.Game.Rulesets.Osu.Objects.Drawables
{
@ -111,7 +113,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
BlurContainer = new BackdropBlurContainer
{
RelativeSizeAxes = Axes.Both,
BlurSigma = new Vector2(4f),
BlurSigma = new Vector2(5f),
MaskCutoff = 0.25f,
EffectBufferScale = new Vector2(0.5f),
Child = Body = new SkinnableDrawable(new OsuSkinComponentLookup(OsuSkinComponents.SliderBody), _ => new DefaultSliderBody(), confineMode: ConfineMode.NoScaling)
@ -144,6 +146,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
{
foreach (var drawableHitObject in NestedHitObjects)
drawableHitObject.AccentColour.Value = colour.NewValue;
BlurContainer.EffectColour = Interpolation.ValueAt(0.5, colour.NewValue, Color4.White, 0, 1);
}, true);
}