behdad / glyphy

GLyphy is a signed-distance-field (SDF) text renderer using OpenGL ES2 shading language.
Other
663 stars 76 forks source link

Make isotropic antialiasing logic more readable. #2

Closed ds-hwang closed 10 years ago

ds-hwang commented 10 years ago

Currently, pixel shader multiplies sqrt(2) to signed distance and then applies anti aliase by 1.5 pixel. It can make us confused. This patch removes redundant sqrt(2) and then applies anti alias by just 1 pixel.

ds-hwang commented 10 years ago

The visual result is almost same between before and after.

behdad commented 10 years ago

Why close?