my shader works! I made a tricky shader from scratch! yay learning new things! 😁
This thing takes tile data in the form of a tiny image where each red pixel represents a tile ++ what kind of edge it is in the green channel (making it look yellow) and the shader turns that into a smooth bordered shape.
So the battle engine can now generate one of these tiny pixel-data images for weapon/movement range and get a nice way to show that range.