This commit is contained in:
2026-11-02 19:35:36 -05:00
parent a6103e453d
commit 7b32ad674e
52 changed files with 3285 additions and 1488 deletions
+3 -3
View File
@@ -12,7 +12,6 @@ uniform vec2 pixelScale;
uniform vec2 pixelPos;
uniform vec4 Color = {0.0f,0.0f,0.0f,1.0f};
uniform vec4 BackgroundColor = {0.0f,0.0f,0.0f,1.0f};
uniform sampler2D tex;
@@ -29,10 +28,11 @@ void main()
vec2 absrelcoord = abs(fragPosTopLeft - pixelScale/2 - pixelPos);
if (!(absrelcoord.x < r1.x || absrelcoord.y < r1.y)) {
if (pow(absrelcoord.y-r1.y,2) > pow(roundingfactor,2) - pow((absrelcoord.x-r1.x),2)) {
vec2 cornerOffset = absrelcoord - r1;
if (dot(cornerOffset, cornerOffset) > roundingfactor * roundingfactor) {
discard;
}
}
}
}
}