Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to make Depth of Field work correctly with transparent objects?

Discussion in 'Scripting' started by WakakaYixixi, Nov 17, 2016.

  1. WakakaYixixi

    WakakaYixixi

    Joined:
    Nov 16, 2016
    Posts:
    4
    ss1.png ss2.png
    As these screenshots show that the Text in World Space Canvas is not correctly work with the DoF effect.
     
  2. WakakaYixixi

    WakakaYixixi

    Joined:
    Nov 16, 2016
    Posts:
    4
    o_OAnyone has an idea?
     
  3. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    Transparent doesn't have depth, DOF relies on depth, therefore transparent takes the depth of whatever is behind it.
     
  4. WakakaYixixi

    WakakaYixixi

    Joined:
    Nov 16, 2016
    Posts:
    4
    So that you mean there is no way to solve this problem right?