How to make a decal shader that projects on all 3 axis and can be rotated locally

I’m looking for help to create a decal shader that projects on all 3 axis. So a shader that when the decal is projecting onto a box with 90 degree angles, it will wrap around it nicely without stretching. I currently have a version that is world aligned, however I need the shader to be able to rotate locally without being locked in worldspace. Any help to sketch out what that shader would look like is much appreciated

You need to explain this better.

Decals are 2d. You can fake some triplanar mapping with them so they splatter on all the planes of the geometry they cover rather than only on the top.

I could assume that is what you mean, but I rather not.

If that is what you meant, just look up how to make triplanar decals. Generally speaking they are world aligned (the Z has to come from something).

If not, please explain what you need…