cleanup old stencil impl
This commit is contained in:
parent
d71e8964fe
commit
42f9949981
8 changed files with 0 additions and 31 deletions
|
@ -1015,7 +1015,6 @@ static void render_containers_linear(struct sway_output *output,
|
||||||
.saturation = child->saturation,
|
.saturation = child->saturation,
|
||||||
.has_titlebar = has_titlebar,
|
.has_titlebar = has_titlebar,
|
||||||
};
|
};
|
||||||
|
|
||||||
render_view(output, damage, child, colors, deco_data);
|
render_view(output, damage, child, colors, deco_data);
|
||||||
if (has_titlebar) {
|
if (has_titlebar) {
|
||||||
render_titlebar(output, damage, child, floor(state->x), floor(state->y),
|
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) {
|
} else if (state->border == B_PIXEL) {
|
||||||
render_top_border(output, damage, state, colors, deco_data.alpha, deco_data.corner_radius);
|
render_top_border(output, damage, state, colors, deco_data.alpha, deco_data.corner_radius);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
render_container(output, damage, child,
|
render_container(output, damage, child,
|
||||||
parent->focused || child->current.focused);
|
parent->focused || child->current.focused);
|
||||||
|
|
|
@ -24,11 +24,6 @@ void main() {
|
||||||
float smoothedAlphaInner = 1.0 - smoothstep(-1.0, 0.5, dist + half_thickness);
|
float smoothedAlphaInner = 1.0 - smoothstep(-1.0, 0.5, dist + half_thickness);
|
||||||
gl_FragColor = mix(vec4(0), v_color, smoothedAlphaOuter - smoothedAlphaInner);
|
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)) {
|
if (is_top_left && (center.y > 0.0 || center.x > 0.0)) {
|
||||||
discard;
|
discard;
|
||||||
} else if (is_top_right && (center.y > 0.0 || center.x < 0.0)) {
|
} else if (is_top_right && (center.y > 0.0 || center.x < 0.0)) {
|
||||||
|
|
|
@ -4,8 +4,4 @@ varying vec2 v_texcoord;
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
gl_FragColor = v_color;
|
gl_FragColor = v_color;
|
||||||
|
|
||||||
if (gl_FragColor.a == 0.0) {
|
|
||||||
discard;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,4 @@ void main() {
|
||||||
float dist = min(max(q.x,q.y), 0.0) + length(max(q, 0.0)) - radius;
|
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);
|
float smoothedAlpha = 1.0 - smoothstep(-1.0, 0.5, dist);
|
||||||
gl_FragColor = mix(vec4(0), v_color, smoothedAlpha);
|
gl_FragColor = mix(vec4(0), v_color, smoothedAlpha);
|
||||||
|
|
||||||
if (gl_FragColor.a == 0.0) {
|
|
||||||
discard;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,8 +11,4 @@ void main() {
|
||||||
float dist = min(max(q.x,q.y), 0.0) + length(max(q, 0.0)) - radius;
|
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);
|
float smoothedAlpha = 1.0 - smoothstep(-1.0, 0.5, dist);
|
||||||
gl_FragColor = mix(vec4(0), v_color, smoothedAlpha);
|
gl_FragColor = mix(vec4(0), v_color, smoothedAlpha);
|
||||||
|
|
||||||
if (gl_FragColor.a == 0.0) {
|
|
||||||
discard;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,8 +34,4 @@ void main() {
|
||||||
gl_FragColor = mix(vec4(0), gl_FragColor, smooth);
|
gl_FragColor = mix(vec4(0), gl_FragColor, smooth);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gl_FragColor.a == 0.0) {
|
|
||||||
discard;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,8 +32,4 @@ void main() {
|
||||||
gl_FragColor = mix(vec4(0), gl_FragColor, smooth);
|
gl_FragColor = mix(vec4(0), gl_FragColor, smooth);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gl_FragColor.a == 0.0) {
|
|
||||||
discard;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,8 +31,4 @@ void main() {
|
||||||
gl_FragColor = mix(vec4(0), gl_FragColor, smooth);
|
gl_FragColor = mix(vec4(0), gl_FragColor, smooth);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (gl_FragColor.a == 0.0) {
|
|
||||||
discard;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue