Render mesh orthographically using material

Hi,

I’m trying to render a mesh orthographically to be used as a 3D UI element. SceneCaptures are too demanding and regular widgets don’t support dynamic lighting/PBR so I’m trying to achieve this through a material. Is it possible?

Cheers for any help.

I believe this thread has what you’re looking for:
Transforming vertices into orthographic view space - Development / Rendering - Epic Developer Community Forums (unrealengine.com)
Keep in mind it’s a bit old and relies on functionality exposed to HLSL custom nodes which are prone to frequent undocumented breaking changes, so be prepared to do a bit of engine source diving.