I need to make an edge detector for normal maps in the material editor. I’ve figured out how it would do it in theory. It would look at the Red channel and it will look at each pixel and then it’s neighboring 8 pixels. If one of them is significantly brighter or darker from a certain range that I can set, it will be turned…
texture coordinates are 0-1 so you'll have to divide that by the pixels in your image. So for a texture that is 16x16 to offset one pixel you would do 1/16 = 0.0625