# Acessing World Position From Depth Buffer

**URL:** <https://forums.unrealengine.com/t/acessing-world-position-from-depth-buffer/1848588>\
**Category:** Rendering\
**Tags:** unreal-engine, question\
**Created:** [May 9, 2024, 8:40pm UTC](https://forums.unrealengine.com/t/acessing-world-position-from-depth-buffer/1848588 "2024-05-09T20:40:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Caleb\_schae](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Caleb\_schae](https://forums.unrealengine.com/u/Caleb_schae)\
**Post date:** [May 9, 2024, 8:40pm UTC](https://forums.unrealengine.com/t/acessing-world-position-from-depth-buffer/1848588/1 "2024-05-09T20:40:35Z")

</div>

Hey everyone, I am new to unreal so still learning about shaders and materials. I am trying to access the world position from the depth buffer for a post-process material. However, I want to pass this information to an actor to do some operations on it. For example, I want to create an array of world location of pixels in my camera view (I know this is probably costly, but just something I want to try). I’ve taken a look at

> [@Depth to World Position](https://forums.unrealengine.com/t/depth-to-world-position/315962):
>
> 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.

but still am unsure how the depth to world position can be applied to a whole scene (if possible) and how to pass this information to an actor. If any of you have any tips, would love to hear them.
