1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 14:12:56 +08:00

Specify texelSize value in the Triangles background

This commit is contained in:
Andrei Zavatski 2023-02-02 08:34:38 +03:00
parent 50659f3d52
commit 175b9fc5c9

View File

@ -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<float>("thickness").UpdateValue(ref fill);
shader.GetUniform<float>("texelSize").UpdateValue(ref texelSize);
foreach (TriangleParticle particle in parts)
{