是否可以在 SceneKit 中关闭抗锯齿以使像素艺术图像清晰?

Is it possible to turn off antialiasing in SceneKit to make pixel art images sharp?

我想在我的游戏中添加纹理,类似于具有锐利像素艺术的 Minecraft。有人知道怎么做吗?

编辑:

http://i.stack.imgur.com/hg9SE.png

这就是我要说的。像素的边缘应该很清晰,但它们都模糊在一起。

问题已解决:

我不得不更改 SKTexture 上的纹理过滤而不是漫反射本身。这解决了问题,现在我有了清晰的纹理。

听起来你想关闭纹理过滤:

aMaterial.diffuse.minificationFilter = SCNFilterModeNearest;
aMaterial.diffuse.magnificationFilter = SCNFilterModeNearest;

此外,您可以将场景的antialiasingMode设置为SCNAntialiasingModeNone