Search Unity

Blending passes with grab pass.

Discussion in 'Shaders' started by JosephStern, Dec 28, 2019.

  1. JosephStern

    JosephStern

    Joined:
    Sep 22, 2019
    Posts:
    9
    Hello!
    Is it possible to blend two passes using grab pass?
    I mean can i use two passes: deferred pass and forwardbase pass in a single shader and blend it with a grab pass?
    Thank you!
     
  2. a436t4ataf

    a436t4ataf

    Joined:
    May 19, 2013
    Posts:
    1,933
    The rendering path is a feature of the camera, so ... no, you can't run both within a single render.

    You can, of course, manually render one (using Camera.Render()) with ShaderA, and output to a RenderTexture, then pass that RT into ShaderB as an input for its normal rendering (or for manual rendering again, using Camera.Render() a second time).