mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 02:22:56 +08:00
Specify texelSize value in the Triangles background
This commit is contained in:
parent
50659f3d52
commit
175b9fc5c9
@ -253,6 +253,7 @@ namespace osu.Game.Graphics.Backgrounds
|
|||||||
private class TrianglesDrawNode : DrawNode
|
private class TrianglesDrawNode : DrawNode
|
||||||
{
|
{
|
||||||
private float fill = 1f;
|
private float fill = 1f;
|
||||||
|
private float texelSize = 0f;
|
||||||
|
|
||||||
protected new Triangles Source => (Triangles)base.Source;
|
protected new Triangles Source => (Triangles)base.Source;
|
||||||
|
|
||||||
@ -296,6 +297,7 @@ namespace osu.Game.Graphics.Backgrounds
|
|||||||
|
|
||||||
shader.Bind();
|
shader.Bind();
|
||||||
shader.GetUniform<float>("thickness").UpdateValue(ref fill);
|
shader.GetUniform<float>("thickness").UpdateValue(ref fill);
|
||||||
|
shader.GetUniform<float>("texelSize").UpdateValue(ref texelSize);
|
||||||
|
|
||||||
foreach (TriangleParticle particle in parts)
|
foreach (TriangleParticle particle in parts)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user