How to draw textures back onto given mesh surface points

I would like to simulate bullet holes after impact of bullets on the walls in unity. We can use prefabs and raycasting to solve this, but I think it is more efficient to modify the textures of the walls, i.e., to add small texture paches(including albedo and normal maps) onto points of impact. Could you give some advice in writing the relevant built-in shader? Thank you!

I just remember a property RaycastHit.textureCoord… Maybe it is useful.

But is the cost in updating the textures a problem?

modifying texture (with setpixels or those) is quite slow…

bullet holes are more likely decals, particles…

i guess you don’t need see through holes, just marks?

check asset store also for ideas,

Thank you! Nice asset.

Maybe it is more cost-efficient to make a modification of the wall texture and clear all the small patches of bullet-hole-quads once the number of holes are high, in the case of keeping a huge amount of bullet holes.

And I think a stencil buffer is needed if the holes are to see through.