Here's a video showing the problem and the shader fix:
Tbh I'm not totally sure how the shader works, but I know it was originally developed for showing pixel art textures in 3D spaces.