Android "Depth Only" broken?

I am trying to use an Image Effect (Blur, Sepia, Vortex, etc.) on a GUI Texture that’s only using part of the screen. I set up two cameras and have second set to Depth Only on a higher Depth, and constricted the View Port Rect. This works great in editor and on iOS devices, but just shows a black box on Android devices. Am I doing something wrong or is there a workaround or better way to do this?

Thanks for any help!

I like to use two cameras. One is for gui, I had an issue before where my textures turned black (Only on device, looked ok in Editor), because I had fog turned on. I had found two solutions: Either turn off Fog mode in the shader or write a camera script that will disable/enable fog when rendering the gui camera. Don’t know if this applies to your situation, hope it helps.

As far as I can tell, the only shader in my entire test project right now, is the one from the built-in image effect I have on my second camera, like Blur, Twirl, Vortex, etc… I don’t see any fog settings. Where else would I look? I definitely do not need fog for what I am doing.

FYI, my texture is not using a material, its assigned directly to a GUITexture.

You don’t need to, if fog is off its not used.

Make sure cameras that render over other cameras have their Depth parameter set differently, for example 0 for the main camera, and 1 for the gui camera. You can alternatively make a shader with Queue=“Overlay” tag.

Yes I am doing that. As I said, it works fine in Editor/iOS. I submitted this as a bug with repro project for Android. Would love to know a workaround in the mean time?

Bumping this, still looking for a way to apply the built-in pro Image Effects to a 2D image, that works with Android? The way I was doing above does not appear to work (on Android) for the moment, so I need a workaround, thanks!!

I found a workaround using 2D Toolkit to show the image on a layer with the camera instead of using GUITexture, then I don’t have to use a depth-only camera, which seems to be the issue for Android.