Skip to content

Commit 9c6ed03

Browse files
committed
Fix incorrect postprocessing alpha
1 parent d1ca651 commit 9c6ed03

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

osu.Game.Rulesets.Sandbox/Graphics/PostProcessingContainer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ protected override void PopulateContents()
189189

190190
protected override void DrawContents()
191191
{
192-
DrawFrameBuffer(SharedData.CurrentEffectBuffer, DrawRectangle, Color4.White);
192+
DrawFrameBuffer(SharedData.CurrentEffectBuffer, DrawRectangle, DrawColourInfo.Colour);
193193
}
194194

195195
private void drawFrameBuffer()

osu.Game.Rulesets.Sandbox/Resources/Shaders/sh_CRT.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
varying mediump vec2 v_TexCoord;
44
varying vec4 v_TexRect;
5+
varying vec4 v_Colour;
56

67
const float gradient = 0.003f;
78

@@ -64,5 +65,5 @@ void main(void)
6465
col = vec4(lensCol.rgb * smoothEdge, clamp(lensCol.a + 1.0 - smoothEdge, 0.0, 1.0));
6566
}
6667

67-
gl_FragColor = col;
68+
gl_FragColor = vec4(col.rgb, v_Colour.a);
6869
}

0 commit comments

Comments
 (0)