Why objects with translucent material don't appear in absolute world position?

I want to create a post processing material for my camera where I change the color of each pixel based on its WS position. My problem is that I have an object with a translucent material, and the WorldPosition node does not show it. Is there a way to change this behaviour?

Apparently, set ‘before translucency’

Unfortunately this only makes the object itself visible, but it’s still not visible to the world position node.
In my case since I want the object to be completely invisible, I could solve this by making the object opaque and render it in custom depth and not in main pass, an the use this solution Depth to World Position - #9 by Wontague to calculate the WS Position.
But this is not efficient.

1 Like