Search Unity

Question Problem with trying to recreate wave shader

Discussion in 'Shader Graph' started by EagL-, Dec 5, 2019.

  1. EagL-

    EagL-

    Joined:
    Dec 9, 2016
    Posts:
    24
    Edit: Nvm, I found a small problem in my graph. It still disappears when decreasing the alpha to a value below 0.5, however.

    I found this tutorial on a water shader which I thought looked really good. I'm now trying to recreate it in shader graph in HDRP. I'm however having troubles with it and this is what I ended up with. I'm pretty sure the math is correct, but it just doesn't look right. Also, decreasing the alpha below 0.5, e.g. setting it to 0.49, causes the whole plane to disappear. Is there some difference between the Cg shaders and shader graph that I'm not aware of?
     
    Last edited: Dec 5, 2019
  2. tesseractzero0

    tesseractzero0

    Joined:
    Mar 15, 2020
    Posts:
    1
    I faced the same problem.
    Found out that the default "AlphaClipThreshold" of PBR Master is 0.5
    Set it to 0 and solved the problem.