Search Unity

Multi Target Render and Scene View

Discussion in 'Editor & General Support' started by Egnech, Mar 27, 2018.

  1. Egnech

    Egnech

    Joined:
    Aug 27, 2015
    Posts:
    27
    Hello Unity Land!

    I've faced with some weird problem with Scene View camera and Multi Target Render.

    I have a set of shaders that wright to separate outputs targets. Every thing is working great in Game View, but in Scene View I only see the output from first target buffer, so it is kind of impossible to work with scene now.

    So, I'm binding RenderBuffer to main camera on OnPreRender, and then OnPostRender I'm doing some magic with post processing. As I mentioned before - it is working good for Game View.

    Possible solution is to disable rendering to separate outputs in shader when not is Play Mode, but this sounds like a bad solution for me.

    PS. I'm not sure that this is a right subforum for such kind of questions, correct me if I'm wrong.