mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:37:28 +08:00
Actually use custom vertex action
This commit is contained in:
parent
bcd24873d6
commit
c08513d590
@ -78,6 +78,9 @@ namespace osu.Game.Graphics.Sprites
|
||||
|
||||
protected override void Blit(IRenderer renderer)
|
||||
{
|
||||
if (DrawRectangle.Width == 0 || DrawRectangle.Height == 0)
|
||||
return;
|
||||
|
||||
animationDataBuffer ??= renderer.CreateUniformBuffer<AnimationData>();
|
||||
animationVertexBatch ??= renderer.CreateQuadBatch<LogoAnimationVertex>(1, 2);
|
||||
|
||||
@ -85,7 +88,13 @@ namespace osu.Game.Graphics.Sprites
|
||||
|
||||
TextureShader.BindUniformBlock("m_AnimationData", animationDataBuffer);
|
||||
|
||||
base.Blit(renderer);
|
||||
renderer.DrawQuad(
|
||||
Texture,
|
||||
ScreenSpaceDrawQuad,
|
||||
DrawColourInfo.Colour,
|
||||
inflationPercentage: new Vector2(InflationAmount.X / DrawRectangle.Width, InflationAmount.Y / DrawRectangle.Height),
|
||||
textureCoords: TextureCoords,
|
||||
vertexAction: addVertexAction);
|
||||
}
|
||||
|
||||
protected override bool CanDrawOpaqueInterior => false;
|
||||
|
Loading…
Reference in New Issue
Block a user