diff options
author | vaxerski <[email protected]> | 2022-04-11 16:39:48 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2022-04-11 16:39:48 +0200 |
commit | b56343133d21622a6187bb1ef8906023ecbc09ef (patch) | |
tree | d755b40d36cf18b9ec1d6e49b5185cbad2d6fd79 /src/render/Shaders.hpp | |
parent | 0f9850fafcb2006e4bf943a65d79b99567a3be4f (diff) | |
download | Hyprland-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.hpp | 24 |
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; } } |