Compare commits

...

4 Commits

Author SHA1 Message Date
Dean Herbert
d05ee7cdb7 Merge pull request #351 from frenzibyte/fix-intro-animation
Fix logo animation not rendering correctly on iOS
2024-12-24 11:47:47 +09:00
Salman Alshamrani
cd67c75f49 Remove alpha channel 2024-12-23 16:48:00 -05:00
Salman Alshamrani
86dd53bc7f Update logo animation shader with new specifications 2024-12-23 16:29:10 -05:00
Salman Alshamrani
96cfd144fa Reprocess logo animation textures to avoid premultiplication causing imprecise animation 2024-12-23 16:23:12 -05:00
3 changed files with 7 additions and 2 deletions

View File

@@ -18,7 +18,12 @@ void main(void)
// todo: workaround for a SPIR-V bug (https://github.com/ppy/osu-framework/issues/5719)
float one = g_BackbufferDraw ? 1 : 0;
vec4 colour = texture(sampler2D(m_Texture, m_Sampler), v_TexCoord, -0.9) * one;
vec4 texel = texture(sampler2D(m_Texture, m_Sampler), v_TexCoord, -0.9) * one;
o_Colour = colour.r < progress ? vec4(v_Colour.rgb, v_Colour.a * colour.a) : vec4(0);
// progress information is stored in the red channel,
// and alpha information is stored in the green channel.
float current = texel.r;
float alpha = texel.g;
o_Colour = current < progress ? vec4(v_Colour.rgb, v_Colour.a * alpha) : vec4(0);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 137 KiB

After

Width:  |  Height:  |  Size: 103 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 132 KiB

After

Width:  |  Height:  |  Size: 98 KiB