# IOS 16.6 SSAO not working properly

**URL:** <https://forum.babylonjs.com/t/ios-16-6-ssao-not-working-properly/47634>\
**Category:** Bugs\
**Created:** [January 29, 2024, 5:31pm UTC](https://forum.babylonjs.com/t/ios-16-6-ssao-not-working-properly/47634 "2024-01-29T17:31:39Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [January 29, 2024, 10:08pm UTC](https://forum.babylonjs.com/t/ios-16-6-ssao-not-working-properly/47634/6 "2024-01-29T22:08:28Z")

</div>

In fact, @fooware improved the SSAO post-process one year ago ([Improved SSAO2 when samples \<16. Added more control over SSAO2 denoising filter. by fooware · Pull Request #13621 · BabylonJS/Babylon.js · GitHub](https://github.com/BabylonJS/Babylon.js/pull/13621)).

I’m not sure why there’s a problem with Apple devices (except for the obvious reason: it’s Apple device)… ~~Try the magic `engine.disableUniformBuffers = true`~~ Ah, I think we now do it automatically when we detect a specific user agent!

Also, see:

> [@SSAO2 blur shader issues](https://forum.babylonjs.com/t/ssao2-blur-shader-issues/38924/20):
>
> Thanks for the file! The problem comes from the fact that the pre-pass renderer is using a 16 bits float texture for the depth and there is not enough precision. I have a PR in progress (for SSR) that will let change the precision of this texture, but in the meantime you can force using the geometry buffer: 16 bits precision (prepass renderer): 32 bits precision (geometry buffer renderer): I’m running against master, that is correct, right? That’s correct!

If it’s the problem, try to use the geometry buffer renderer and see if that fixes it.

[…] Hum, that should do nothing, as the depth texture is now 32 bits by default with the pre-pass renderer:

> [@SSAO2 blur shader issues](https://forum.babylonjs.com/t/ssao2-blur-shader-issues/38924/28):
>
> Note that since 5.51.0, the depth texture of the pre-pass renderer is now 32 bits. So, this PG now works without the artifacts for the towel:

[…] Ok, I could reproduce on my iPhone SE with this PG:

> **[Babylon.js Playground](https://playground.babylonjs.com/#LCUPCU%2314)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

Forcing half float for the depth texture on my PC produces the same result.

The iPhone is using half float for the depth texture because float texture linear filtering is not supported:

> **[Babylon.js Playground](https://playground.babylonjs.com/#LCUPCU%2322)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

Touch the screen to see the value for “textureFloat” and “textureFloatLinearFiltering”. You should get `true` for the first (float textures are supported) but `false` for the second (filtering float textures is not supported).

Unfortunately, we can’t do anything about it…

---

_[View the full topic](https://forum.babylonjs.com/t/ios-16-6-ssao-not-working-properly/47634)._
