How to get meshes world positions into a post pass?

I have a scene where I need to pass all of the meshes world positions into a post pass.

To do this I made an rtt and have it rendering all the meshes, I then make sure the material for all the meshes display their vPositionW.xyz and their color. The rtt is set to a float texture but for some reason this seems to not work.

Is there a better way to get the positions to the post pass?

Nevermind it did work, there was something weird with the timing of my textures being bound.

fwiw, you can query the scene anyway you want, then add the resulting meshes to the renderlist of the postprocess. idk if that works for what you’re trying to do though