You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use Piston to make a 2D pixel-art game, and as part of that I need to zoom the textures by 2x. Unfortunately, when I scale the images, Piston uses a standard, blurry, scaling algorithm. What I need is a simpler, sharper scaling algorithm, such as NN. Here's my code:
let transform = c
.transform.trans(x asf64, y asf64).zoom(2.0);image(tile, transform, gl);
Here's what my scaled image looks like (just one tile):
The text was updated successfully, but these errors were encountered:
I'm trying to use Piston to make a 2D pixel-art game, and as part of that I need to
zoom
the textures by 2x. Unfortunately, when I scale the images, Piston uses a standard, blurry, scaling algorithm. What I need is a simpler, sharper scaling algorithm, such as NN. Here's my code:Here's what my scaled image looks like (just one tile):
The text was updated successfully, but these errors were encountered: