I use decals for paint splatter in our game but the stretching effect on perpendicular faces are out of place. Is there a way to not render the stretched out parts? I use DBuffer decals since normal once don’t really work well with our lighting.
I tried using the PixelNormalWS node to determine if some part is perpendicular with the dot product but it seems this node is not working the way I expect it to for DBuffer decals.
The decal has three sizes; width / height / depth. The decal doesn’t get apply deeper than the “depth” size value, so make it smaller along that axis, and the stretching won’t be noticeable. The drawback is that the surface you apply it to needs to fit within the depth, so if it’s very irregular, that’s a problem.