Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

DOF based image filter

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

  1. ZYSHAQ

    ZYSHAQ

    Joined:
    Jun 26, 2015
    Posts:
    76
    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,520
    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.