October 2016
Intermediate to advanced
452 pages
9h 47m
English
In this recipe, we'll write a simple particle shader demonstrating how to create leaves in wind. We can do so using a Particle Emitter combined with a Material Shader that "shades" our leaves to give them the appearance of blowing in the wind.

To begin, you'll need a leaf texture as well as a scene in which to place the falling leaves. In the Chapter11 code package, you'll find a scene called LeavesAndTree that contains a deciduous tree that you can use.
Read now
Unlock full access