Stylized Grass Shader
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.