Search Unity

Render Mode Fade vs Opaque

Discussion in 'Shaders' started by FunkyUserName, Feb 24, 2019.

  1. FunkyUserName

    FunkyUserName

    Joined:
    Jun 27, 2015
    Posts:
    8
    Unity 2017 4.19F1

    Hello there,

    i want to fade out buildings once my hero walks behind them.
    Here is rendering mode Opaque:
    Opaque.jpg
    Rendering Mode Fade:
    Fade.jpg

    i want it to look just like opaque with 1.0 Alpha and then equally fade with alpha.
    What am i missing?
     
    jrumps likes this.
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,342
    jrumps and FunkyUserName like this.
  3. FunkyUserName

    FunkyUserName

    Joined:
    Jun 27, 2015
    Posts:
    8
    thanks alot, i have found a shader online that uses z-sorting as described in the link. works like a charm
     

    Attached Files:

    jrumps likes this.