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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Procedurally covering a plane with grass asset

Discussion in 'Scripting' started by Cullen-sharp, May 10, 2020.

  1. Cullen-sharp

    Cullen-sharp

    Joined:
    May 6, 2020
    Posts:
    3
    Hey everyone,
    First time poster and Unity beginner here. I just built a vertex shader for grass, and I want to cover an entire surface with the grass. Is there a way to do that? I've tried googling around and tinkering, but no significant success yet.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,970
    If it's a vertex shader, make a plane, put that shader on it with a Material, you're done. Am I misunderstanding something about your question?
     
    Cullen-sharp likes this.
  3. NatCou

    NatCou

    Joined:
    Jan 29, 2017
    Posts:
    26
    Cullen-sharp likes this.
  4. Cullen-sharp

    Cullen-sharp

    Joined:
    May 6, 2020
    Posts:
    3
    I think this on the right track? My vertex shader was made to animate wind sway on the grass, and I wanted to make a field of swaying grass. Recently found out that GPU instancing is a thing, so I've been trying that.

    Inferring from your answer, would it be possible to just build a shader that populates a field with grass sprites(for lack of a better word)?