I work with very small sprites to create a retro game with pixel sprites. But when I zoom in on my sprites to make them bigger, the Sprite Kit smoothes out the sprites, and that’s not what I want.
Is there a way to save a sprite pixel when I zoom in?
You can play in the filtering mode .Nearest textures (by default -.Linear). Texture filtering modes can be used when a texture is drawn at a size other than its own size.
SKTextureFilteringNearest
. , .
, .
, ( .Nearest)
- , .
Source: https://habr.com/ru/post/1626752/More articles:Creating nested models in a Rails 4 application - ruby-on-railsTemporarily disable cache in gaming infrastructure - scalaAPI Django REST с несколькими представлениями/форматами - pythonPython binary search (maximum number of iterations) - pythonWhy do functional languages use lists so much? - listAngular Smart Table Does Not Refresh When Updated - angularjsAngular unpacking binding - javascriptLaravel 5 - skip migrations - phpDelete file from all commits - gitCreating a change log for a semantically released package - gitAll Articles