diff options
author | Inconn <[email protected]> | 2023-03-26 18:14:33 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2023-03-26 19:14:33 -0400 |
commit | 4d1af6500491bdc301b590916fd04f5d8ec6a2c2 (patch) | |
tree | 186bddbf1909696124dd855166a0106522c04c80 | |
parent | f2d29ceb6b831a07ce2bce4534fe6fec1f16eee3 (diff) |
fix: remove 'f' suffixes from tex.frag to fix nvidia (#136)
-rw-r--r-- | sway/desktop/shaders/tex.frag | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/shaders/tex.frag b/sway/desktop/shaders/tex.frag index 40320f9b..51a42c4f 100644 --- a/sway/desktop/shaders/tex.frag +++ b/sway/desktop/shaders/tex.frag @@ -56,7 +56,7 @@ void main() { vec2 corner_distance = min(gl_FragCoord.xy - position, size + position - gl_FragCoord.xy); if (max(corner_distance.x, corner_distance.y) < radius) { float d = radius - distance(corner_distance, vec2(radius)); - float smooth = smoothstep(-1.0f, 0.5f, d); + float smooth = smoothstep(-1.0, 0.5, d); gl_FragColor = mix(vec4(0), gl_FragColor, smooth); } } |