Stylized Grass Shader Documentation

Stylized Grass Shader

Stylized Grass Shader
Author: jonathan
Version: 1.0.8
Dated: 31 Aug 2019

6.Blending with terrain colors #

The grass had the ability to seamlessly blend in with the underlying terrain’s color. This can also be seen in many AAA games nowadays. The following steps can be followed to set this up:


  • Select a GameObject (or create an empty one) and go to Add Component -> Stylized Grass -> Color Map Renderer

  • Assign your terrain GameObjects (these can also be mesh terrain tiles)
  • Set the size of the render area. Or choose to calculate it based on the total terrain size.
  • Click the Render button

In order for the color map to apply at runtime, this Color Map Renderer component must be present. Alternatively, you can save the color map asset and assign it to an active Stylized Grass Renderer component.

The grass shader has a “Colormap Strength” parameter. If this is set to 0, the color map will not be visible on the material.

If your grass materials use the “Simple” lighting mode, grass is colored on a per-vertex basis (as opposed to per-pixel). As a result you can get away with a very low resolution color map.

Yes No Suggest edit
Last updated on May 12, 2020
1 of 2 users found this section helpful
Suggest Edit