Using Particles/Alpha Blended Shader in Android build

Hi, we’re making a hexagon-tiled game and we have hexagon fog tiles on top of the ground using Particles/Alpha Blended Shader. In our WebGL it looks like this (which is what we want):

But when we switch to Android platform it turns out like this:

Does anyone have an idea?

gl_blend not enable or precision difference between webgl on pc and android device? Just some guesses

This shader uses the camera depth texture and soft particle keyword, it is not available by default on forward rendering and android. first be sure to have Soft particles enabled in your quality settings for android. Then you need a script to tell the camera to render the depth texture: Unity - Scripting API: Camera.depthTextureMode

2 Likes

Thanks for the reply! We might end up going with a particle system to have a more dynamic fog instead. But otherwise this was very helpful thank you. :slight_smile:

Hi there i also have same problem and couldnt emd up in the right way
Particles/alphablend does not work on forward rendering path
And im a non coder guy so can you please help me to get this shader up and running on android using forward path?