Skip to content

Commit 0a5abce

Browse files
committed
Deploying to gh-pages from @ 447b0c3 🚀
1 parent 3545e1d commit 0a5abce

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎sample/textRenderingMsdf/main.js‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎sample/textRenderingMsdf/msdfText.wgsl‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ fn fragmentMain(input : VertexOutput) -> @location(0) vec4f {
6767
// uses the default which is 4.
6868
let pxRange = 4.0;
6969
let sz = vec2f(textureDimensions(fontTexture, 0));
70-
let dx = sz.x*length(vec2f(dpdxFine(input.texcoord.x), dpdyFine(input.texcoord.x)));
71-
let dy = sz.y*length(vec2f(dpdxFine(input.texcoord.y), dpdyFine(input.texcoord.y)));
70+
let dx = sz.x*length(vec2f(dpdx(input.texcoord.x), dpdy(input.texcoord.x)));
71+
let dy = sz.y*length(vec2f(dpdx(input.texcoord.y), dpdy(input.texcoord.y)));
7272
let toPixels = pxRange * inverseSqrt(dx * dx + dy * dy);
7373
let sigDist = sampleMsdf(input.texcoord) - 0.5;
7474
let pxDist = sigDist * toPixels;

0 commit comments

Comments
 (0)