How to account for distortion when creating sample points on a cubemap? (Niagara)

I am trying to take “evenly” spaced samples of a cube map and add any sample with a valid depth to an array in Niagara.

What I can’t figure out is how to offset or nullify the distortion when creating these sample points.

If I create a scene capture cube and have it render ONLY a sphere that is placed 500cm in front of the camera, I get about 8000 elements added to the array.

However, if I do the same thing but place the sphere 500cm above the camera instead, I only get about 5000 elements added to the array. (I need the result of both to be the same)

I understand why this is happening, but I can’t figure out a way to make my sample points account for the distortion in the cubemap.

Here is the method I have that works but doesn’t account for distortion:


Any help or tips would be greatly appreciated!!!