Hey guys, I was wondering how to go about creating an overlay for a 2D character that would simulate dirt on clothes or the body for example. The character is made with multiple Polygon2Ds and a skeletal bone system, while the dirt is basically a big rectangle texture with painted dirt. I tried using the new CanvasItem Clip children method, but that only seems to work if directly connected to a parent, eg. for each body part polygon2D I would have to duplicate and reparent the dirt texture node so it influences each part separately, as parenting the root 2Dnode with the mask does nothing. I need the big rectangle dirt texture to mask every single Polygon2D node texture in the character tree basically.
I could just make new polygon2D nodes with exactly cut dirt texture and weight paint it to the skeleton so it moves, and display it over the clothes, but I would have to paint it as precise as the clothes themselves so if the clothes move around and deform, the dirt also deforms…
Is there a way to do this?