Okay so basically I have an object with particles around it. I wanna apply a special image effect only on my particles (metaballs), so I put the particles on a separate layer, and render to texture from a separate camera that only sees this layer. I create a material that uses this render texture, and I apply it to a plane that rotates with my main camera. Everything works as expected, except for the fact that since I’m rendering to a plane, and the plane is closer to my camera than the actual scene, it gets drawn over my scene. How can I take into account the depth when I render to my texture so that my geometry is drawn over the particles? Or is my setup wrong? Any ideas?
What my scene looks like: http://i.imgur.com/mRCSC3U.png
What the game view looks like: http://i.imgur.com/McojxnE.png
Main camera settings: http://i.imgur.com/SEX5KtU.png
Blob camera settings: http://i.imgur.com/m36YL1D.png