# Post Process: How to Absolute World Position at UV

**URL:** <https://forums.unrealengine.com/t/post-process-how-to-absolute-world-position-at-uv/459057>\
**Category:** Feedback & Requests\
**Tags:** Post-Processing, FeatureRequest, unreal-engine, question\
**Created:** [December 2, 2019, 5:34pm UTC](https://forums.unrealengine.com/t/post-process-how-to-absolute-world-position-at-uv/459057 "2019-12-02T17:34:28Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Dasay2605](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Dasay2605](https://forums.unrealengine.com/u/Dasay2605)\
**Post date:** [June 21, 2025, 12:52am UTC](https://forums.unrealengine.com/t/post-process-how-to-absolute-world-position-at-uv/459057/9 "2025-06-21T00:52:11Z")

</div>

For those still looking for a solution for UE5, I implemented the following code inside a custom node that I used for the edge detection algorithm (it worked well for my task):

```cpp
#if POST_PROCESS_MATERIAL
    if (ClampUV){
        UV = saturate(UV);
    }
    
    // Clip space
    float4 Clip;
    Clip.x = UV.x * 2.0 - 1.0; // maps [0:1] to [-1:1]
    Clip.y = (1.0 - UV.y) * 2.0 - 1.0; // maps [0:1] to [1:-1]
    Clip.z = LookupDeviceZ(ViewportUVToBufferUV(UV)); // Normalised Depth in range [0:1]
    Clip.w = 1.0;

    // Translated World Space
    float4 WorldPos = mul(Clip, ResolvedView.ClipToTranslatedWorld);

    // Translated to absolute world
    return DFFastSubtract(WorldPos.xyz/WorldPos.w, PrimaryView.PreViewTranslation).High;
#else
    return 0;
#endif

```

This is the material function:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/2/f82aecfb29b9c6b49b5bb789b73fc4b8ca42e14e.png)

Use the following [snippet](https://dev.epicgames.com/community/snippets/YOKP/unreal-engine-screenuvtoabsoluteworldposition) to copy and paste the blueprint code.

---

_[View the full topic](https://forums.unrealengine.com/t/post-process-how-to-absolute-world-position-at-uv/459057)._
