Search Unity

Post-processing DOF based image filter

Discussion in 'Image Effects' started by ZYSHAQ, Feb 28, 2019.

  1. ZYSHAQ

    ZYSHAQ

    Joined:
    Jun 26, 2015
    Posts:
    66
    hello,
    I downloaded post-processing stack (and its awesome!); however, I need to create an effect where blurred pixels will have an image filter applied to them vased on their blurriness!

    Ex: the more the objects are blurred the darker/brighter they become.

    This can help separate foreground from background of similar colors.
     
  2. jvo3dc

    jvo3dc

    Joined:
    Oct 11, 2013
    Posts:
    1,372
    For a darker background you could simply use a black fog.

    For other combinations you could add a postprocessing step before the DoF that changes the intensity based on the depth and the DoF settings.
     
    ZYSHAQ likes this.