Hi all, I have fragment shader, Texture2Ds (R8 format) and runtime generated random shapes on them (obviously red channel). Here is an example: I want an outline style expanding on these random shapes like this (Lighter color to show). I did this with testing the pixel red value and with if statement on frag. If it is red then sampling neighbour pixels and expanding on them if neighbour's not red. But this is a lot of work. Approx. 8+ sampling per pixel for same texture with if statements. Do you know is there any easier way to do this? Thank you for reading!