iPhone OpenGL ES 2.0 - Pixel Perfect Textures

前端 未结 2 391
被撕碎了的回忆
被撕碎了的回忆 2020-12-08 18:09

How can I get my textures to align with the screen pixels for pixel perfect graphics in OpenGL ES 2.0? This is critical for a project I\'m working on which uses pixel art g

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-08 18:30

    This link may be usefull:

    http://glprogramming.com/red/appendixg.html#name1

    Look at "If exact two-dimensional rasterization is desired...". This OpenGl tip tells you how to best setup your ortho matrix for 2D.

    Also, you may need to disable any kind of texture filtering.

提交回复
热议问题