Graphics.DrawMeshNow to texture?

I am attempting to draw a mesh on top of a texture, using the same texture for a special effect. I am encountering two problems:

  1. the mesh doesn’t seem to be drawing to the render texture. Any advice on how to get this working is welcome.

  2. the mesh must only be drawn to the render texture AFTER the render texture has been rendered to by a camera. Any advice here is also welcome.

Thanks guys!

It would seem like you need two cameras (in addition to the main camera) - one to draw the initial RenderTexture, and one to draw the render texture from the last camera, and the new mesh. This should be done in the OnRenderObject of the second camera.

What issues are you seeing?

I’ve solved the issues now. I managed to avoid a blit and get it up to 60fps on the target platform. I didn’t use any OnRender methods after all - camera depth was enough. Thank you for reply :slight_smile: