I’m making an outline shader for pixel art. I’ve managed to separate the inside and outside line from the scene depth, but not for the normal. This is causing the outline to be twice, and setting the width to 0.5 has its own issues.
I don’t know what the original formula for calculating this was, and the method for the scene depth hasn’t worked. Any ideas?