mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Merge branch 'master' into chat-report
This commit is contained in:
@ -306,7 +306,7 @@ namespace osu.Game.Graphics.Backgrounds
|
||||
};
|
||||
|
||||
shader.Bind();
|
||||
shader.BindUniformBlock("m_BorderData", borderDataBuffer);
|
||||
shader.BindUniformBlock(@"m_BorderData", borderDataBuffer);
|
||||
|
||||
foreach (TriangleParticle particle in parts)
|
||||
{
|
||||
|
@ -249,7 +249,7 @@ namespace osu.Game.Graphics.Backgrounds
|
||||
};
|
||||
|
||||
shader.Bind();
|
||||
shader.BindUniformBlock("m_BorderData", borderDataBuffer);
|
||||
shader.BindUniformBlock(@"m_BorderData", borderDataBuffer);
|
||||
|
||||
Vector2 relativeSize = Vector2.Divide(triangleSize, size);
|
||||
|
||||
|
@ -76,17 +76,24 @@ namespace osu.Game.Graphics.Sprites
|
||||
private IUniformBuffer<AnimationData> animationDataBuffer;
|
||||
private IVertexBatch<LogoAnimationVertex> animationVertexBatch;
|
||||
|
||||
protected override void Blit(IRenderer renderer)
|
||||
protected override void BindUniformResources(IShader shader, IRenderer renderer)
|
||||
{
|
||||
if (DrawRectangle.Width == 0 || DrawRectangle.Height == 0)
|
||||
return;
|
||||
base.BindUniformResources(shader, renderer);
|
||||
|
||||
animationDataBuffer ??= renderer.CreateUniformBuffer<AnimationData>();
|
||||
animationVertexBatch ??= renderer.CreateQuadBatch<LogoAnimationVertex>(1, 2);
|
||||
|
||||
animationDataBuffer.Data = animationDataBuffer.Data with { Progress = progress };
|
||||
|
||||
TextureShader.BindUniformBlock("m_AnimationData", animationDataBuffer);
|
||||
shader.BindUniformBlock(@"m_AnimationData", animationDataBuffer);
|
||||
}
|
||||
|
||||
protected override void Blit(IRenderer renderer)
|
||||
{
|
||||
if (DrawRectangle.Width == 0 || DrawRectangle.Height == 0)
|
||||
return;
|
||||
|
||||
base.Blit(renderer);
|
||||
|
||||
renderer.DrawQuad(
|
||||
Texture,
|
||||
|
Reference in New Issue
Block a user