Stylized Grass Shader Documentation

Stylized Grass Shader

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

9.Using custom meshes #

The package includes several pre-made grass prefabs, ready to use. If you’re looking to use your own grass meshes that is possible as well.

For the shading and animations to function properly, the top part of the mesh must have vertex colors painted into it (only the red color channel is needed). You can do this in any 3D modeling tool, or using PolyBrush in Unity. Please refer to their manuals on how to achieve this.

This information denotes which parts of the grass should be not be affected by wind or bending. It is also used as a mask for the Ambient Occlusion parameter.

Note that the shader uses vertex animations. Complex meshes as “tubes” of grass or other meshes with thickness will deform by the wind animations and bending. Using simple planes gets the best results, the simpler the mesh, the better.

Yes No Suggest edit
Last updated on September 10, 2020
2 of 2 users found this section helpful
Suggest Edit