Search Unity

Brackeys Grass Sway Wont Work

Discussion in 'Getting Started' started by GrassTree, Apr 13, 2019.

  1. GrassTree

    GrassTree

    Joined:
    Apr 13, 2019
    Posts:
    4
    Hi, for some reason, the back of the grass material is black, everything else is working fine. I've triple checked the shader graph, though it may have been caused by a possible failed attempt to include HDRP or proper lighting. I am reasonably new to this.
     
  2. BrewNCode

    BrewNCode

    Joined:
    Feb 17, 2017
    Posts:
    372
    How about if you start by sharing the video?

    - Also, screenshot your errors (if you have any)
    - Paste your code where the error was found.

    That way we can understand what is happening here.
     
  3. GrassTree

    GrassTree

    Joined:
    Apr 13, 2019
    Posts:
    4
    sure,
    Video:
     

    Attached Files:

    Last edited: Apr 14, 2019
  4. GrassTree

    GrassTree

    Joined:
    Apr 13, 2019
    Posts:
    4
    Here is the shader graph, and with the light managing to light up part of the grass.
     

    Attached Files:

  5. GrassTree

    GrassTree

    Joined:
    Apr 13, 2019
    Posts:
    4
    anything?
     
  6. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,794
    That video is like a great example of when visual based shader coding is terrible.

    Why do you have the light so vertical? Can you put it an angle? Does it still not light the grass then?