POM Decal without Blueprints?

Hi!

I had a look at this thread already: POM Decal | Decal rotation screws up POM effect - Rendering - Epic Developer Community Forums

I was able to make a prototype out of it that actually works. Ryan Brucks suggested to expose vector parameters in the Parallax Occlusion Mapping function and feed these 3 Local Space Vector via a Blueprint using Dynamic Material Instances.

I guess that if he suggested this approach in 2016, it’s probably because there was no other simpler way to do so at this time. That said, I was wondering if it could be now possible do so directly inside the materials.

I was thinking of using ObjectOrientation (Up Vector) material expression but we would probably need the Forward Vector and the Right Vector as well.

The main reason of my question being is that we do spawn decals in many different contexts (via c++ config file). Most of the time it’s not from blueprints. I would also prefer to avoid the dynamic material instancing to counter this issue.

Thanks in advance and have a great day.