aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/render/Shaders.hpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2022-04-11 16:39:48 +0200
committervaxerski <[email protected]>2022-04-11 16:39:48 +0200
commitb56343133d21622a6187bb1ef8906023ecbc09ef (patch)
treed755b40d36cf18b9ec1d6e49b5185cbad2d6fd79 /src/render/Shaders.hpp
parent0f9850fafcb2006e4bf943a65d79b99567a3be4f (diff)
downloadHyprland-b56343133d21622a6187bb1ef8906023ecbc09ef.tar.gz
Hyprland-b56343133d21622a6187bb1ef8906023ecbc09ef.zip
fixed blur rendering, stencil and gles3
Diffstat (limited to 'src/render/Shaders.hpp')
-rw-r--r--src/render/Shaders.hpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/render/Shaders.hpp b/src/render/Shaders.hpp
index 09d4d504..53a8c439 100644
--- a/src/render/Shaders.hpp
+++ b/src/render/Shaders.hpp
@@ -56,13 +56,13 @@ void main() {
if (pixCoord[1] < topLeft[1]) {
// top
if (distance(topLeft, pixCoord) > radius) {
- gl_FragColor = vec4(0,0,0,0);
+ discard;
return;
}
} else if (pixCoord[1] > bottomRight[1]) {
// bottom
if (distance(vec2(topLeft[0], bottomRight[1]), pixCoord) > radius) {
- gl_FragColor = vec4(0,0,0,0);
+ discard;
return;
}
}
@@ -72,13 +72,13 @@ void main() {
if (pixCoord[1] < topLeft[1]) {
// top
if (distance(vec2(bottomRight[0], topLeft[1]), pixCoord) > radius) {
- gl_FragColor = vec4(0,0,0,0);
+ discard;
return;
}
} else if (pixCoord[1] > bottomRight[1]) {
// bottom
if (distance(bottomRight, pixCoord) > radius) {
- gl_FragColor = vec4(0,0,0,0);
+ discard;
return;
}
}
@@ -107,13 +107,13 @@ void main() {
if (pixCoord[1] < topLeft[1]) {
// top
if (distance(topLeft, pixCoord) > radius) {
- gl_FragColor = vec4(0,0,0,0);
+ discard;
return;
}
} else if (pixCoord[1] > bottomRight[1]) {
// bottom
if (distance(vec2(topLeft[0], bottomRight[1]), pixCoord) > radius) {
- gl_FragColor = vec4(0,0,0,0);
+ discard;
return;
}
}
@@ -123,13 +123,13 @@ void main() {
if (pixCoord[1] < topLeft[1]) {
// top
if (distance(vec2(bottomRight[0], topLeft[1]), pixCoord) > radius) {
- gl_FragColor = vec4(0,0,0,0);
+ discard;
return;
}
} else if (pixCoord[1] > bottomRight[1]) {
// bottom
if (distance(bottomRight, pixCoord) > radius) {
- gl_FragColor = vec4(0,0,0,0);
+ discard;
return;
}
}
@@ -261,13 +261,13 @@ void main() {
if (pixCoord[1] < topLeft[1]) {
// top
if (distance(topLeft, pixCoord) > radius) {
- gl_FragColor = vec4(0,0,0,0);
+ discard;
return;
}
} else if (pixCoord[1] > bottomRight[1]) {
// bottom
if (distance(vec2(topLeft[0], bottomRight[1]), pixCoord) > radius) {
- gl_FragColor = vec4(0,0,0,0);
+ discard;
return;
}
}
@@ -277,13 +277,13 @@ void main() {
if (pixCoord[1] < topLeft[1]) {
// top
if (distance(vec2(bottomRight[0], topLeft[1]), pixCoord) > radius) {
- gl_FragColor = vec4(0,0,0,0);
+ discard;
return;
}
} else if (pixCoord[1] > bottomRight[1]) {
// bottom
if (distance(bottomRight, pixCoord) > radius) {
- gl_FragColor = vec4(0,0,0,0);
+ discard;
return;
}
}