Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code question: how to draw grass over terrain of uneven height? #2

Open
kevenson opened this issue Jun 18, 2021 · 0 comments
Open

Code question: how to draw grass over terrain of uneven height? #2

kevenson opened this issue Jun 18, 2021 · 0 comments

Comments

@kevenson
Copy link

Hello,

Thanks so much for publishing this. I've tried so many different grass assets for Unity (for VR) and this is hands down the best I've found--and most of the others I've tried I had to pay for.

I'm trying to understand the code and I have two questions for you (I'm new to URP):

  1. how would you go about drawing grass over an uneven terrain, taking the y position into consideration?
  2. Could one integrate a terrain mask for this so that the grass would follow the player but only render in certain places on the terrain based on the mask (e.g. where the grass ground layer is painted)?

Thanks again!
Kai

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant