Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Grass on HDRP terrain

Discussion in 'World Building' started by AkiLap, Dec 29, 2018.

  1. AkiLap

    AkiLap

    Joined:
    Sep 14, 2014
    Posts:
    24
    Hi,
    Just wanted to show how you can paint non-billboard grass on Unity 2018.3 & HDRP 4.6.0-preview:

    You create new terrain, and in Paint details, create new Grass texture, disable its billboard checkbox.
    then

    1. Create new Lit shader graph
    2. Name it to: WavingDoublePass
    3. open shader, rename the path to: Hidden/TerrainEngine/Details
    4. use these settings as shown in picture:



    Note that it is far from perfect, and the performance is pretty bad (at least on my setup).
    But hopefully this helps some people getting closer to working grass setup :)
     
  2. Shinobi1507

    Shinobi1507

    Joined:
    Sep 8, 2010
    Posts:
    220
    Performance aside, it looks fantastic.

    Thanks for sharing!
     
  3. Psychoram

    Psychoram

    Joined:
    Jun 1, 2014
    Posts:
    4
    Hi! I m using unity HDRP 2019.1 and my grass is pink. I tryed with wavingDoublepass shader but or it is not working in this version , or I don't knot to install it corectly. Can someone help me?
     
  4. diegichi

    diegichi

    Joined:
    Jul 12, 2017
    Posts:
    1
    where the new shader is supposed to add.
    I have already done all that has been said, but where should I place the new shader.