In this second tree recipe, we will create the leaves shaders, as shown in the following screenshot:
Carrying on with the blend file of the previous recipe, now, activate (hold Shift while clicking) the 2nd and the 11th scene layers, and in Outliner, select the leaf_generic_mid object.
Let's proceed with the creation of the leaves shaders:
Click on the New button in the Node Editor window toolbar or in the Material window, and rename the material as
leaf_alpha
.In the Material window, switch the Diffuse BSDF shader with a Mix Shader node and label it as Mix Shader Cutout; in the first Shader slot, select a Transparent BSDF shader node, and in the second one, select a new Mix Shader node, which will be labeled as Mix Shader Add Translucency.
Add an Image Texture node (press Shift + A and navigate to Texture | Image Texture), label it as
MASK
, and connect its Alpha output to the Fac input...