![]() ![]() The grass is now rendered on the terrain depending on the strength of the corresponding terrain texture. Select the texture of the grass you want to draw.Ĭonfigure the height, width and the dry/healthy colors to your content.įinally the "Enabled" checkbox activates this grass. The four foldout menus "Options for Terrain texture #" are used to configure the grass for the first four terrain textures of the terrain object. To configure the shader, select the "Grass Shader Deferred" material found in "Terrain Shader/Shader". ![]() Go the terrain settings -> Choose the "Custom" option under "Material" and add the "Grass Shader Deferred" Material in the "Custom Material" slot.Create a terrain object and add at least one texture.Make sure rendering path is set to Deferred and color space is linear.Instructions on how to use the terrain grass shader: Either open one of the two demo scenes or follow the instructions. for the player character to bend the grass where he walks). It also supports up to 10 sperical colliders (e.g. The shader utilizes the "Deferred Rendering" path support cheap lighting and shadows. Painting terrain textures immediately updates the grass for direct visual feedback. Grass is generated on the GPU in real-time and distributed depending on the ID of the ground textures. It was created in the course of a Bachelor's thesis at the HCI research group at the Hamburg University. This package includes a Unity terrain shader that generates grass on different textures in Real-time. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |