Skip to content

Commit 402c9d4

Browse files
committed
Tune up rendering
1 parent f139ebd commit 402c9d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/shaders/frag.glsl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ void main() {
2222
if (dist < 1e-2)
2323
discard;
2424

25-
float dif = 6. * pixelRatio * borderWidth / pointSize;
26-
float borderLevel = .746 - dif * .6;
27-
float charLevel = .746 + dif * .4;
28-
float gamma = .0045 * charsStep / pointSize;
25+
float dif = 5. * pixelRatio * borderWidth / pointSize;
26+
float borderLevel = .748 - dif * .5;
27+
float charLevel = .748 + dif * .5;
28+
float gamma = .005 * charsStep / pointSize;
2929

3030
float borderAmt = smoothstep(borderLevel - gamma, borderLevel + gamma, dist);
3131
float charAmt = smoothstep(charLevel - gamma, charLevel + gamma, dist);

0 commit comments

Comments
 (0)