shipyard-games / SCNText2D

Rendering text in SceneKit using SDF fonts.
MIT License
14 stars 3 forks source link

Text aliasing #6

Open masaldana2 opened 4 years ago

masaldana2 commented 4 years ago

Hello, Great framework! how do i solve the aliasing on text when scaling it down the scnview?

Screen Shot 2020-05-26 at 8 56 55 PM

let scnView = SCNView(frame: CGRect(x: 0, y: 0, width: 512, height: 512))

tsharju commented 4 years ago

@masaldana2 you can try to ease the problem with aliasing by tweaking the SDF parameters a little. It is a bit of a manual process atm, but you can define them in SCNText2D constructor parateters. In the future maybe this could be improved by supporting mipmap textures, but so far no plans on implementing that.