Skip to content

Vytek/unity-enhanced-foliage

Repository files navigation

unity-enhanced-foliage

In this package you will find two shader solutions for non terrain leaves and grass movement. With this solution based in the Standard Surface Shader, you can implement your texture with an workflow similar to the unity standard shader, controling metallic and smoothness values of the material to create, for example, a wetness effect in the leaves. The vertex movement part of the shader was taken from here. Thanks, GambinoInd.

You can also control the behaviour of the leaves by changing values of the variables in the "CustomWind" script that must be inside of any game object in your scene. This script is not a type of "wind zone", it just controls the global variables of the shaders so you do not have to do this manually in all instantiated prefarbs.

Unfortunately I could not develop any solution for the bark movement using the same concepts of these two shaders, but for now it is a good solution for custom trees and grass. The package contain a example scene with the original setup to help you understand how scripts work.

You are free to do whatever you want except sell it.

enhanced foliage for unity 5

enhanced foliage for unity 5

unity 5 move grass and leaves outside terrain

unity 5 transparent leaves with global fog With some post process like global fog and antialiasing.

About

Moving grass and leaves outside unity terrain.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published