(for Godot 4) If using a Sprite3D node, under the geometry category of the inspector, you can drag and drop your sprite onto the Material Override property. After that, enable Transparency (if needed) and then under Sampling, change the filter to Nearest