cleanup old stencil impl

This commit is contained in:
Will McKinnon 2023-01-17 01:58:28 -05:00
parent d71e8964fe
commit 42f9949981
8 changed files with 0 additions and 31 deletions

View file

@ -1015,7 +1015,6 @@ static void render_containers_linear(struct sway_output *output,
.saturation = child->saturation,
.has_titlebar = has_titlebar,
};
render_view(output, damage, child, colors, deco_data);
if (has_titlebar) {
render_titlebar(output, damage, child, floor(state->x), floor(state->y),
@ -1024,7 +1023,6 @@ static void render_containers_linear(struct sway_output *output,
} else if (state->border == B_PIXEL) {
render_top_border(output, damage, state, colors, deco_data.alpha, deco_data.corner_radius);
}
} else {
render_container(output, damage, child,
parent->focused || child->current.focused);

View file

@ -24,11 +24,6 @@ void main() {
float smoothedAlphaInner = 1.0 - smoothstep(-1.0, 0.5, dist + half_thickness);
gl_FragColor = mix(vec4(0), v_color, smoothedAlphaOuter - smoothedAlphaInner);
if (gl_FragColor.a == 0.0) {
discard;
return;
}
if (is_top_left && (center.y > 0.0 || center.x > 0.0)) {
discard;
} else if (is_top_right && (center.y > 0.0 || center.x < 0.0)) {

View file

@ -4,8 +4,4 @@ varying vec2 v_texcoord;
void main() {
gl_FragColor = v_color;
if (gl_FragColor.a == 0.0) {
discard;
}
}

View file

@ -11,8 +11,4 @@ void main() {
float dist = min(max(q.x,q.y), 0.0) + length(max(q, 0.0)) - radius;
float smoothedAlpha = 1.0 - smoothstep(-1.0, 0.5, dist);
gl_FragColor = mix(vec4(0), v_color, smoothedAlpha);
if (gl_FragColor.a == 0.0) {
discard;
}
}

View file

@ -11,8 +11,4 @@ void main() {
float dist = min(max(q.x,q.y), 0.0) + length(max(q, 0.0)) - radius;
float smoothedAlpha = 1.0 - smoothstep(-1.0, 0.5, dist);
gl_FragColor = mix(vec4(0), v_color, smoothedAlpha);
if (gl_FragColor.a == 0.0) {
discard;
}
}

View file

@ -34,8 +34,4 @@ void main() {
gl_FragColor = mix(vec4(0), gl_FragColor, smooth);
}
}
if (gl_FragColor.a == 0.0) {
discard;
}
}

View file

@ -32,8 +32,4 @@ void main() {
gl_FragColor = mix(vec4(0), gl_FragColor, smooth);
}
}
if (gl_FragColor.a == 0.0) {
discard;
}
}

View file

@ -31,8 +31,4 @@ void main() {
gl_FragColor = mix(vec4(0), gl_FragColor, smooth);
}
}
if (gl_FragColor.a == 0.0) {
discard;
}
}