Update by Federico Calchera:
Hey, I used your rim light shader in a project and I updated it to fix some issues:
- it now handles correctly if the image is rotated on the spritesheet
- rim light thickness now works with texel size, so it stays the same size regardless of the render resolution when using fullscreen quality high