Apply opacity to screenspace border (closes #3355)

This commit is contained in:
Emma Broman
2024-07-29 09:49:31 +02:00
parent 77a84be5ab
commit 9c71ba2f42

View File

@@ -53,7 +53,7 @@ Fragment getFragment() {
if (vs_st.x < borderWidth.x || vs_st.x > 1 - borderWidth.x ||
vs_st.y < borderWidth.y || vs_st.y > 1 - borderWidth.y)
{
frag.color = vec4(borderColor, 1.0);
frag.color = vec4(borderColor, opacity);
}
if (frag.color.a == 0.0) {