Hi there! I’m having problems with renderTextures when switching to Android. (And iOS it seems.)
I’m using a 2nd camera to render to a render texture, that gets read directly into a material that processes it a little before mapping it onto some geometry. This all works great for web builds, but when we switch to Android or iOS, the render texture goes black. Even if I take the material and bypass all processing, so it returns the input renderTexure as is it still comes out black.
I’ve looked through the forums and I’ve tried a as many suggestions as I could find.
(
- The renderTexture camera has a depth below the main camera
- I checked that antialiasing was off on the renderTexture
- turned on “ZTest Always” on the simple shader assigned to the objects seen by the renderTexture camera
- tried adjusting the Queue ordering in the materials to no avail.
)
It all works for the web, both interactively and in a browser, but as soon as I switch to Android it goes black.
This is Unity 4.5.2f1
Any help would be appreciated!