Chlumsky / msdfgen

Multi-channel signed distance field generator
MIT License
3.9k stars 404 forks source link

The effect of render small character is not good #182

Closed sry948749099 closed 1 year ago

sry948749099 commented 1 year ago

Hello, I'm generating a 32x32 multi-channel distance field generated by this program with pxrange 2, and it is used to render text with 16x16 pixels font size on the screen, but i found the render effect is not good. like this: 20230717-195419 This is my shader: 20230717-195427 so, could you help me to analyze the reasons, or what are the effective solutions.

Chlumsky commented 1 year ago

For downscaling, you need higher pxranges than 2 (proportional to the downscale). You should also make sure your shading is sRGB-correct. Otherwise, I'm not sure what you mean by "not good."

sry948749099 commented 1 year ago

For downscaling, you need higher pxranges than 2 (proportional to the downscale). You should also make sure your shading is sRGB-correct. Otherwise, I'm not sure what you mean by "not good."

How to make my shading to be sRGB-correct? “not good” means the first picture's render effect is not good, the jagged effect is obvious。 I tried to increase my pxrange value and render it through the above shader, but the rendered characters are very weak and thin.