How to render a world position pass that includes volumetrics? I've found the 'how to render a world position pass' Q&amp;A on here, but I'm stuck at how to render one that includes volumetric objects (smoke in a domain object), it does not show in the render layer I setup as per the above answer.
Obviously, as there would need to be a separate shader feeding into the 'volume' input of the material output node, my question is how do you create a WPP shader for volumes? Or more to the point can you create one?

Edit- It looks like you can almost do it, but the smoke gets incorrect / different XYZ-RGB data compared to the meshes. If you look at this video, you can see that in Fusion you can pick 3D/XYZ position from the 2D render, but the smoke isn't in the same 'world' position wise.
https://youtu.be/Ne9J2vyGOS4

The shaders are as follows-



Any ideas? How to get the smoke WPP shader to match the mesh WPP shader position wise?
Looks like (with the help of @iponoo @zeauro &amp; @ kologe from blender artists &amp; blenderchat), it is possible.
Here's the smoke shader, that works with the mesh shader to produce a WPP for both smoke and meshes-


It works well enough for me to do a bit of 'deep' type comping-
https://youtu.be/xgCA-D4ukJk

In the video the smoke seems to be respecting the same XYZ-RGB space as the meshes.
So divide the vectors by 100 in the smoke shader seems to make things all work together.

And certainly work well enough with the 'volume mask' tool in Fusion for me.

Cheers!