diff options
author | Thunderblade73 <85900443+Thunderblade73@users.noreply.github.com> | 2024-08-25 23:56:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-25 23:56:08 +0200 |
commit | 2fd9abda245a6e64e8246e498377cba9830fd62d (patch) | |
tree | 1cd9ae452a8f071a24245045866b03f39dc84f2b | |
parent | 17be307d56bab4f50006bb5487e4bf513ef8ee08 (diff) | |
download | skyhanni-2fd9abda245a6e64e8246e498377cba9830fd62d.tar.gz skyhanni-2fd9abda245a6e64e8246e498377cba9830fd62d.tar.bz2 skyhanni-2fd9abda245a6e64e8246e498377cba9830fd62d.zip |
Fix: Rounded Shaders not working with a scale less than 1 (#2404)
3 files changed, 3 insertions, 3 deletions
diff --git a/src/main/resources/assets/skyhanni/shaders/rounded_rect.fsh b/src/main/resources/assets/skyhanni/shaders/rounded_rect.fsh index 0d91be0a5..e728bf43d 100644 --- a/src/main/resources/assets/skyhanni/shaders/rounded_rect.fsh +++ b/src/main/resources/assets/skyhanni/shaders/rounded_rect.fsh @@ -22,7 +22,7 @@ void main() { vec2 newHalfSize = vec2(halfSize.x * xScale, halfSize.y * yScale); float newCenterPosY = centerPos.y; - if (yScale > 1.0) { + if (yScale != 1.0) { newCenterPosY = centerPos.y - (halfSize.y * (yScale - 1)); } diff --git a/src/main/resources/assets/skyhanni/shaders/rounded_rect_outline.fsh b/src/main/resources/assets/skyhanni/shaders/rounded_rect_outline.fsh index 278390056..64c8a54d6 100644 --- a/src/main/resources/assets/skyhanni/shaders/rounded_rect_outline.fsh +++ b/src/main/resources/assets/skyhanni/shaders/rounded_rect_outline.fsh @@ -26,7 +26,7 @@ void main() { vec2 newHalfSize = vec2(halfSize.x * xScale, halfSize.y * yScale); float newCenterPosY = centerPos.y; - if (yScale > 1.0) { + if (yScale != 1.0) { newCenterPosY = centerPos.y - (halfSize.y * (yScale - 1)); } diff --git a/src/main/resources/assets/skyhanni/shaders/rounded_texture.fsh b/src/main/resources/assets/skyhanni/shaders/rounded_texture.fsh index a38ebc4ea..4e5c0e1ea 100644 --- a/src/main/resources/assets/skyhanni/shaders/rounded_texture.fsh +++ b/src/main/resources/assets/skyhanni/shaders/rounded_texture.fsh @@ -25,7 +25,7 @@ void main() { vec2 newHalfSize = vec2(halfSize.x * xScale, halfSize.y * yScale); float newCenterPosY = centerPos.y; - if (yScale > 1.0) { + if (yScale != 1.0) { newCenterPosY = centerPos.y - (halfSize.y * (yScale - 1)); } |