phy1um / ps2-homebrew-livestreams

Repo for code written during my Playstation 2 Homebrew livestreams
MIT License
51 stars 6 forks source link

Pixel Perfect Sprites #19

Open phy1um opened 2 years ago

phy1um commented 2 years ago

Sprites are blurry when rendered, and this causes pixel art to look sub-optimal.

Investigate less blurry pixel art rendering based on this article.

The important quote:

So now we know that to get pixel-perfect sprites using linear mapping on the GS, we need to use UV(0.5, 0.5) XY(0,0) to UV(W-0.375, H-0.375) XY(W-0.9375, H-0.9375). I have tested these results quite a bit and everything seems to come out perfect in all my tests...