From 175b9fc5c918a1a4601912dc3b7dcbe16a85f7b5 Mon Sep 17 00:00:00 2001 From: Andrei Zavatski Date: Thu, 2 Feb 2023 08:34:38 +0300 Subject: [PATCH] Specify texelSize value in the Triangles background --- osu.Game/Graphics/Backgrounds/Triangles.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osu.Game/Graphics/Backgrounds/Triangles.cs b/osu.Game/Graphics/Backgrounds/Triangles.cs index 6750d74a08..ca5f5d06d3 100644 --- a/osu.Game/Graphics/Backgrounds/Triangles.cs +++ b/osu.Game/Graphics/Backgrounds/Triangles.cs @@ -253,6 +253,7 @@ namespace osu.Game.Graphics.Backgrounds private class TrianglesDrawNode : DrawNode { private float fill = 1f; + private float texelSize = 0f; protected new Triangles Source => (Triangles)base.Source; @@ -296,6 +297,7 @@ namespace osu.Game.Graphics.Backgrounds shader.Bind(); shader.GetUniform("thickness").UpdateValue(ref fill); + shader.GetUniform("texelSize").UpdateValue(ref texelSize); foreach (TriangleParticle particle in parts) {