Trying to render the UI in NDC space didn't seem to work. I got it to work with a very rough estimation of the [-1, 1] space to [-screensize, screensize] conversion. Setting the position of the UI element is clearly wrong but other transformations seem to work.
NOTE: The transpose in the set uniformmatrix4x4 should most likely be set to false.
Trying to render the UI in NDC space didn't seem to work. I got it to work with a very rough estimation of the [-1, 1] space to [-screensize, screensize] conversion. Setting the position of the UI element is clearly wrong but other transformations seem to work.
NOTE: The transpose in the set uniformmatrix4x4 should most likely be set to false.