I’ve built a Unity 5.x project which is seamlessly working on PC/Mac, Android & IOS with quite success. I added stencil buffer IO to my shaders to perform dynamic filtering of geometries which is working great on the PC but does not work on both mobile OS.
In previous Unity versions, there was a flag in the player settings to enable 24-bit depth buffer, but this is no more the case in Unity 5.x (or I fail to find where…)
Is there anyone here who succeeded in making the stencil buffer to work on Android (or IOS) devices?
[Edit] I upgraded to the latest Unity version and the stencil buffer works on Android again!
(version 5.4.2f2-GVR13 in my case since I’m creating a VR app)
– old response below –
I had stencil buffers working on Android using Unity 5, but now it doesn’t work anymore after upgrading to 5.4.2. I don’t remember the exact version I was using when it worked, and I don’t know what caused it to break. I think I had to enable the 32-bit depth buffer in Player Settings when it worked.
Does anyone else use the stencil buffer in Unity 5.4+?