I've tried different approaches to make decals (bullet holes, blood splats, etc.), but performance wise, the best metod seems to be instantiating a plane on the hit point of the surface, be it a prefab plane or a runtime built plane mesh. It's working fine, but now I need to solve the infamous problem of decals around corners of a mesh, so I was wondering if there is an easy way to get this done.
I thought I could just check the hit mesh, and scale the decal plane if its bounds exceeds a corner on a wall, but I couldn't find an easy way to detect a corner on a mesh.
Any suggestions?