Splatoon-like painting in unity on any-shape mesh colliders, with some edge handling.
Left click - raycast paint (center of screen)
Right click - throw tomato (paint blob)
It just boils down to:
- Make a good UV map (no overlapping faces)
- Raycast and get raycasthit.textureCoords
- Extract x and y components and use SetPixel to paint
- Add some paint randomization and spread, and some other stuff to make it look nicer