Search Unity

Question Uisng Texture Mask with lerp node to limit grass movement

Discussion in 'Shader Graph' started by Erfan_SheikhHoseini, May 8, 2019.

  1. Erfan_SheikhHoseini

    Erfan_SheikhHoseini

    Joined:
    Feb 7, 2019
    Posts:
    32
    hello, i am following along with this Brackeys tutorial on creating grass movement shader. at some point he uses uv coordinates of the mesh and lerp node to make sure the bottom of the grass stays on the ground, like this:
    Capture.PNG
    however when i want to use a texture mask instead of uv, the lerp node refuses to accept the output of the Sample texture 2d node (neither of the r, g or b values). why is this happening?
     
  2. alexandral_unity

    alexandral_unity

    Unity Technologies

    Joined:
    Jun 18, 2018
    Posts:
    163
    Erfan_SheikhHoseini likes this.