Search Unity

Question Gradient sample node compile errors

Discussion in 'Shader Graph' started by ju_my, Jan 13, 2022.

  1. ju_my

    ju_my

    Joined:
    Mar 7, 2017
    Posts:
    23
    Hi i'm having this issue when connecting Sample gradient node to master node in Shader Graph .
    Tried to reinstall hdrp package and library folder, but nothing changed... =\
    But i didn't find a way to reinstall shader graph .

    The error:
    Shader error in 'Shader Graphs/StrangeMushroom': unrecognized identifier 'Gradient_Definition' at line 4026 (on d3d11)

    Thanks!
     
  2. ju_my

    ju_my

    Joined:
    Mar 7, 2017
    Posts:
    23
    Ok i found the problem, we cannot call a gradient "Gradient" cause the struct name is also "Gradient"
     
    Vandallord likes this.