Download

Find average surface normal in an area not just a point

Is there a good algorithm to find an average surface normal in an area around an impact point?

This would help spawn impact decals on corners nicer. I noticed when I manually place decals in the editor on corners at an angle they look pretty good. However if they just spawn at the exact impact normal, it looks pretty bad around sharp corners because of the projection direction.