Is it possible to fix the fuzziness of antialiased SKShapeNodes?

前端 未结 2 2109
没有蜡笔的小新
没有蜡笔的小新 2021-02-14 09:14

I\'m experimenting with using SKShapeNodes in a game, and have found that antialiased SKShapeNodes are very blurry.

Without antialiasing:

2条回答
  •  情深已故
    2021-02-14 09:51

    Nope—that’s what “antialiasing” looks like on a shape node. You might be expecting to see something more like multisampling, but that’s not what SpriteKit is doing here. To get the smooth non-blurry lines you’re looking for you’ll have to draw your shapes into an image and then display that in an SKNode. You might also consider filing an enhancement request on the API.

提交回复
热议问题