I am using these settings in baseengine.ini to prevent decals getting invisible when in shadows:
[SystemSettings]
r.EarlyZPassMovable=1
r.EarlyZPass=2
r.DBuffer=1
After that I have new issue with instanced meshes (also hierarchical), since decals show through those. If I set use as occluder enabled in instancedstaticmesh-component, the decals no longer show through. But then when moving camera the instances blink violently. How to get both decals and instances show correctly?