Search Unity

Shader Graph - Alpha clip dither but retain shadows

Discussion in 'Graphics Experimental Previews' started by SunnySunshine, Jan 4, 2019.

  1. SunnySunshine

    SunnySunshine

    Joined:
    May 18, 2009
    Posts:
    669
    I'm trying to make an alpha clip dither effect as the camera approaches an object using Shader Graph in HDRP, but it seems like its shadows are affected too:







    I'm wondering if there's a way to retain a shadow despite alpha clip being used?

    The effect I want is this (here I'm using built-in pipeline):



     
  2. Gekigengar

    Gekigengar

    Joined:
    Jan 20, 2013
    Posts:
    409
    I am trying to achieve the same thing, and found this thread. Any solution?
     
  3. SunnySunshine

    SunnySunshine

    Joined:
    May 18, 2009
    Posts:
    669
    Didn't find anything unfortunately, but haven't looked into for quite a while. Things might have changed with more settings or nodes, not sure.
     
  4. teutonicus

    teutonicus

    Joined:
    Jul 4, 2012
    Posts:
    41
    The simplest solution would be to just duplicate the object and set the dupe's MeshRenderer to cast shadows only ...
    upload_2019-5-24_7-58-18.png
     
    SunnySunshine likes this.