Chlumsky / msdfgen

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

Question: correct way to use supersampling with MDSF textures #140

Closed hybridherbst closed 2 years ago

hybridherbst commented 2 years ago

Hi, I was trying to implement Rotated Grid Supersampling from @bgolus for better font readability in VR.

There's a slight improvement, but results look a bit blurry when either supersampling the MSDF texture directly (and then calculating median etc.) or calculating alpha per sample and averaging them (with the technique for 3D outlined here).

Do you happen to have any hints what the correct way to supersample a MSDF texture for better clarity would be? Thanks!