Drop-in replacement grass shaders

Made these for myself a while ago. Easy to just drop in if you’re already using the default terrain grass, and feels like jumping from 2002 to 2010 in one go.

Before and after:

The shaders: GitHub - Nition/UnityTerrainGrass: Drop-in replacement terrain grass shaders for Unity

Should work in Unity 4 and up, at least until they update the terrain system one day. Probably works in Unity 3 as well.

  • Make some built-in Unity terrain with grass.
  • Drop the two shaders from this repo anywhere in your Assets folder. They’ll automatically override the hidden default ones.
  • Press the Refresh button on the grass placing screen.

Literally just a swap from cutout shader to alpha transparency. You’d think there’d be a performance hit but there wasn’t one for me. I suspect there could be if your grass is dense.

1 Like

nice!

i also compared with this another shader from

(without adding grass color tint)

2 Likes

Awesome, thanks for that because I’ve never really managed to find others making replacement shaders for grass and foliage. What a great blog post too, a lot of cool tricks in there.

That shader has a really nice crisp look - basically like cutout but without the terrible aliasing. Nice complementary option to the soft look of mine. Anything’s better than the default.

2 Likes