Several objects in UE5 like the post-processing volume and trigger boxes have bounding box visualisation in the editor.
How can such a material be created in the material graph? Or how can this same material be applied to user created primitives?
This only has to work for boxes. Doesn’t have to be smooth or antialiased. Thickness should be constant regardless of viewing distance and angle just like the example.
Attempting this in the pixel shader using UVs works somewhat but scaling reduces the line thickness and ruins the effect.