# 4.13 planar reflection BUG on metal/es3.1

**URL:** <https://forums.unrealengine.com/t/4-13-planar-reflection-bug-on-metal-es3-1/369875>\
**Category:** Rendering\
**Tags:** Mobile, planar-reflection, unreal-engine, iOS, Rendering, question\
**Created:** [September 9, 2016, 5:09am UTC](https://forums.unrealengine.com/t/4-13-planar-reflection-bug-on-metal-es3-1/369875 "2016-09-09T05:09:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_1521166e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1521166e](https://forums.unrealengine.com/u/anonymous_user_1521166e)\
**Post date:** [September 9, 2016, 5:09am UTC](https://forums.unrealengine.com/t/4-13-planar-reflection-bug-on-metal-es3-1/369875/1 "2016-09-09T05:09:12Z")

</div>

1.Here are two screenshots to show what I mean,the first one is in SM5,and the second on is in es3.1,you can clearly see that everything reflects fine in SM5,however,in es3.1(mobile),the bridge which below the clipplane has been rendered as if above the water.And I have tested this on metal enabled iphone6 and iphone6s,both have this issue.

2.Also,I find there’s a bit different between rendering in SM5 and in es3.1,please look at the trees which being reflected in water.In SM5(screenshot above),the edge of the trees look more clean,while in es3.1 not.How can I optimize for es3.1?

3.By the way,is there a way to specify which device to use/enable planar reflection?Such as I want iphone6s or above to use planar reflection,but iphone6 or below to disable this.

Thanks!

 ![106300-sm5.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/d/c/cdc26e9625a43b885caf87b81caf169d78e27865.png)

]

 ![106311-es3.1.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/9/8c903d0c8979619a93d074026d3b3064f6561cd0.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1521166e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1521166e](https://forums.unrealengine.com/u/anonymous_user_1521166e)\
**Post date:** [September 9, 2016, 5:15am UTC](https://forums.unrealengine.com/t/4-13-planar-reflection-bug-on-metal-es3-1/369875/2 "2016-09-09T05:15:41Z")

</div>

I have found two similar issues posted with 4.12:

> **[Planar Reflection OpenGL Clipping Plane Bug](https://forums.unrealengine.com/questions/468588/planar-reflection-opengl-linux-inverted.html)**
>
> Expected (screenshot from DX11): Current (screenshot from OpenGL): EDIT: The global clipping plane required for planar reflections simply does not work in OpenGL: See my comment below.

> **[Planar reflection clipplane bug on Metal](https://forums.unrealengine.com/questions/438822/planar-reflection-clipplane-bug-on-metal.html)**
>
> It seems that Clip plane is not working on Metal. Both Mac and iOS is affected. Planar reflections incorrectly reflect objects that are wrong side of plane. I made simple test case project that clearly show how reflections are broken. In...

---

<div class="post-metadata">

**Author:** ![dgrieshofer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dgrieshofer](https://forums.unrealengine.com/u/dgrieshofer)\
**Post date:** [September 9, 2016, 5:36am UTC](https://forums.unrealengine.com/t/4-13-planar-reflection-bug-on-metal-es3-1/369875/3 "2016-09-09T05:36:59Z")

</div>

Yes this is the exact same issue that I posted. Clipping Plane simply is not yet implemented in OpenGL but it is tracked here: [Unreal Engine Issues and Bug Tracker (UE-34762)](https://issues.unrealengine.com/issue/UE-34762) so make sure to upvote it!

---

<div class="post-metadata">

**Author:** ![JackP](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JackP](https://forums.unrealengine.com/u/JackP)\
**Post date:** [September 9, 2016, 10:30am UTC](https://forums.unrealengine.com/t/4-13-planar-reflection-bug-on-metal-es3-1/369875/4 "2016-09-09T10:30:53Z")

</div>

Although the issue is the same, the implementation will be separate for mobile vs Linux OpenGL. We have a separate ticket (UE-32449) tracking adding support for a planar reflection clip plane to the mobile renderer.

We did some work on this a week or two ago and at the moment it’s scheduled to be done in time for 4.14.

- Jack

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_1521166e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_1521166e](https://forums.unrealengine.com/u/anonymous_user_1521166e)\
**Post date:** [September 9, 2016, 11:10am UTC](https://forums.unrealengine.com/t/4-13-planar-reflection-bug-on-metal-es3-1/369875/5 "2016-09-09T11:10:03Z")

</div>

Thanks! What about the last 2 questions?
