Depth to World Position

pylb
Wed, 22 Apr 2015 14:25:51 +0000
Rendering

Hi,

In a post process material, what would be the best way to get the World Position of a pixel rendered in the CustomDepth GBuffer?

I tried CameraPosition - (CameraVector * CustomDepth.r), but the result is obviously wrong.

Thanks.

11 posts - 9 participants