# UE4.19 has broken post process material for VR

**URL:** <https://forums.unrealengine.com/t/ue4-19-has-broken-post-process-material-for-vr/423719>\
**Category:** Rendering\
**Tags:** Post-Processing, unreal-engine, question\
**Created:** [April 27, 2018, 7:34am UTC](https://forums.unrealengine.com/t/ue4-19-has-broken-post-process-material-for-vr/423719 "2018-04-27T07:34:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BingoBongo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BingoBongo](https://forums.unrealengine.com/u/BingoBongo)\
**Post date:** [April 27, 2018, 7:34am UTC](https://forums.unrealengine.com/t/ue4-19-has-broken-post-process-material-for-vr/423719/1 "2018-04-27T07:34:58Z")

</div>

In UE4.18 I can use a wide texture which contais images for both eyes. A post process material has correct view uv-coordinates to draw the texture. But in UE4.19 it looks like now a post process material calls twice. Once for a left eye and once for a right eye. As a result both eyes get a same part of texture. Is there an any way to detect which eye is been rendering inside a post process material? I have my own render system to draw the sky for a virtual reality. What should I do?

---

<div class="post-metadata">

**Author:** ![Darby\_Costello](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/darby_costello/32/88719_2.png) [@Darby\_Costello](https://forums.unrealengine.com/u/Darby_Costello)\
**Post date:** [May 22, 2018, 12:44pm UTC](https://forums.unrealengine.com/t/ue4-19-has-broken-post-process-material-for-vr/423719/2 "2018-05-22T12:44:45Z")

</div>

Create a custom node (CMOT float1) in your PP material and paste the following:

return ResolvedView.StereoPassIndex;

Everything in the output below 0.5 will be left eye and everything above will be right eye. You can feed this as the alpha value to a Lerp, with textures fed into the A and B inputs for each eye.

 ![241815-untitled-1.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/6/b/86b1bf15d7749beb87442d115969bd0f5ed9a152.jpeg)

---

<div class="post-metadata">

**Author:** ![Darby\_Costello](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/darby_costello/32/88719_2.png) [@Darby\_Costello](https://forums.unrealengine.com/u/Darby_Costello)\
**Post date:** [May 22, 2018, 1:33pm UTC](https://forums.unrealengine.com/t/ue4-19-has-broken-post-process-material-for-vr/423719/3 "2018-05-22T13:33:46Z")

</div>

Oh and don’t forget to feed in the right UVs. I use a ScreenAlignedUVs node, with a Constant2Vector storing the per-eye screen resolution 🙂
