Niagara Data Channels - how to read from NDC in custom HLSL node?

I found a method that I tested to read the NDC correctly.