Search Unity

Question Alpha clip dither and keep original shadows

Discussion in 'Shader Graph' started by namcap, Nov 22, 2019.

  1. namcap

    namcap

    Joined:
    Jan 8, 2016
    Posts:
    49
    I'm applying a dithering effect to my object when the camera gets close, and use the alpha clip threshold to make those dithered pixels transparent. This causes the shadows to appear dithered as well whenever the object is dithered. Is it possible to keep the original shadow (not dithered) of the object?

    For reference, I'm using a PBR graph, a surface of "Opaque", and a blend of "Alpha".

    (I originally posted this in the Shader forums before realizing there was a forum specifically for Shader Graph)
     
  2. LandonTownsend

    LandonTownsend

    Unity Technologies

    Joined:
    Aug 21, 2019
    Posts:
    35
  3. namcap

    namcap

    Joined:
    Jan 8, 2016
    Posts:
    49
    This works great, thanks! It would be nice to have this as a node or some documentation in Shader Graph around this. I've seen similar questions to this one asked, and no one seemed to have a good solution.
     
    fsutter likes this.
  4. tonbery

    tonbery

    Joined:
    Jan 7, 2013
    Posts:
    5
  5. Smitzo

    Smitzo

    Joined:
    Mar 23, 2019
    Posts:
    11
    Last edited: Dec 18, 2021
    POOKSHANK likes this.