Nearest neighbor sprite scaling

Godot Version

4.3

Question

I want to resize a pixel-perfect sprite, i.e. setting its scale to non-integer value, e.g. 0.8 or 0.5, while keeping pixels of the same size.
In a basic setup (just a Node2D with a Sprite attached), if I set the Sprite scale to 0.5 the resulting rendering is a scaled sprite with smaller (half-size) pixels:

Instead, what I would like is getting a nearest neighbour rescaling, e.g. (from aseprite):

Is it possible to do it somehow?

Replying to myself.

The Godot screenshot posted is from the Editor. When the game is played, the Sprite is rendered correctly with the target pixels size.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.