Decals on deforming 2d mesh how?
I have a sprite with a mesh renderer, and a deforming mesh controlled by bones. I'd like to have decals like damage or blood applied to the sprite, that look right as the mesh deforms and animates. I have tried to generate sprites for each splatter and attach them to bones, but the effect is not very satisfactory. The decals look extremely obviously like foreign objects, only vaguely following the underlying deformation.
Using SetPixels to paint on the mesh texture directly is really complicated for simple decals : It would need world space to uv coordinate conversion which I have no idea how to do (the mesh is animating, and complex), and some way to blend the decal pixel data with the existing pixel data of the mesh texture. AFAIK SetPixels just replaces existing pixels with new ones, and doesn't paint over or blend.
In short : Deforming 2d mesh, "paint" decals on it that deform with it, and look natural. Is it even possible?
Your answer
Follow this Question
Related Questions
Why Game Object deform in here? 0 Answers
Why flipping triangles, not normals 1 Answer
Mesh without texture 1 Answer
Resources.Load Mesh within file 0 Answers
How do you draw a sprite from an atlas on to a mesh? 1 Answer