# Wrong depth value in post processing material of VR

**URL:** <https://forums.unrealengine.com/t/wrong-depth-value-in-post-processing-material-of-vr/471748>\
**Category:** Rendering\
**Tags:** Post-Processing, stereo, depth, unreal-engine, question\
**Created:** [September 22, 2020, 11:23am UTC](https://forums.unrealengine.com/t/wrong-depth-value-in-post-processing-material-of-vr/471748 "2020-09-22T11:23:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_c62b1471](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_c62b1471](https://forums.unrealengine.com/u/anonymous_user_c62b1471)\
**Post date:** [September 22, 2020, 11:23am UTC](https://forums.unrealengine.com/t/wrong-depth-value-in-post-processing-material-of-vr/471748/1 "2020-09-22T11:23:05Z")

</div>

I am trying to get the scene color and depth of both eyes in a post process material using the ‘SceneTexture’ node. The color values for both eyes and the depth value for the left eye are correct while the depth value of the right eye is broken. This problem occurs on Vulkan RHI. It works well for both eyes on DX11 RHI.

It can be reproduced by creating the VR sample and adding a material for post process volume.

RHI: Vulkan  
HMD: HTC Vive

I am not sure if it is a bug of Vulkan RHI or I used a wrong node to get depth value. I also posted a similar question in VR section but havn’t got responses.

> **[How to get stereo scene depth in VR?](https://forums.unrealengine.com/questions/983236/view.html)**
>
> I am trying to get the scene color and depth of both eyes in a post process material using the ‘SceneTexture’ node. The color values for both eyes and the depth value for the left eye are correct while the depth value of the right eye is broken. ...

Does anyone know the right way to get the stereo scene depth values? Thanks!

Wrong depth value for the right eye:

![313223-annotation-2020-09-11-181240.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/b/debf90783db9c9bda1d60406dd20e8b94dd8e31e.png)

 ![313230-annotation-2020-09-11-182024.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/5/21511203692e285c1e68abe4057f7a65470553ac.jpeg)

![313224-annotation-2020-09-11-181256.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/4/9/549f1629d76a8e43799c3dcc7d914a3bc2378e89.png)

 ![313241-annotation-2020-09-11-182122.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/b/8/9b84e70a4b50535e63cc099eb8c89ae7f9efff5c.jpeg)
