Search Unity

Compare 2 passes then remap value.

Discussion in 'Shaders' started by FreeGameDev, Aug 27, 2017.

  1. FreeGameDev

    FreeGameDev

    Joined:
    Dec 1, 2015
    Posts:
    67
    Hi, right now I have 2 render passes that end up in a Pass2 - Pass1 result using "BlendOp Sub"
    This leaves very small values in the framebuffer. I would like to Remap the values to 0 - 1 in the next pass.
    Can anyone think of any way to do this?

    Thanks.