# Custom Depth buffer not working for mobile

**URL:** <https://forums.unrealengine.com/t/custom-depth-buffer-not-working-for-mobile/450997>\
**Category:** Mobile\
**Tags:** Mobile, custom-depth, unreal-engine, iOS, question\
**Created:** [June 20, 2019, 1:45pm UTC](https://forums.unrealengine.com/t/custom-depth-buffer-not-working-for-mobile/450997 "2019-06-20T13:45:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![reefG](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@reefG](https://forums.unrealengine.com/u/reefG)\
**Post date:** [June 20, 2019, 1:45pm UTC](https://forums.unrealengine.com/t/custom-depth-buffer-not-working-for-mobile/450997/1 "2019-06-20T13:45:37Z")

</div>

Hello,

When I preview a simple scene in the editor using SM5 and select to visualise the captured depth buffer I see my objects correctly rendered. (screen 1).

When I view the same buffer but preview GL3.1 i.e mobile, the buffer is filled with high values and appears all white. I also observe the same on an actual device (iPhone XS). (screen 2)

Am I doing something wrong here, I am doing something wrong? I expect mobile to show to the same results as SM5.

Also, I have tested this in 4.23 and I get the same results.

Any help would be greatly appreciated.  
Thanks

 ![280298-screenshot-2019-06-20-at-143413.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/7/2177988bd523e8279f9f8ca531d22bd167d64a1e.png)

 ![280299-screenshot-2019-06-20-at-143431.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/7/66713bacf6ddc2576b84856c63199826694faad4.png)

---

<div class="post-metadata">

**Author:** ![Maxxi](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maxxi](https://forums.unrealengine.com/u/Maxxi)\
**Post date:** [July 26, 2022, 9:19am UTC](https://forums.unrealengine.com/t/custom-depth-buffer-not-working-for-mobile/450997/2 "2022-07-26T09:19:36Z")

</div>

Hi,

Same problem here in 4.27 on Mobile!

Were you able to find a solution?
