I like this approach! You mind if I see if I can implement it in my game?pgimeno wrote: ↑Sat May 20, 2023 3:04 pmHere's a proof of concept for that. I took the liberty of extracting stone.png from your game for this demo, I hope you don't mind.
As I commented in the other thread, the texture is first drawn to a canvas in nearest neighbour mode with a floor(magnification factor) zoom factor, then the canvas interpolation mode is set to linear filtering. That canvas is then used as the mesh texture.
Need a better way of drawing pixellated polygons
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
Re: Need a better way of drawing pixellated polygons
Dragon
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 10 guests