Book Image

Blender Cycles: Materials and Textures Cookbook, Third Edition

By : Enrico Valenza
Book Image

Blender Cycles: Materials and Textures Cookbook, Third Edition

By: Enrico Valenza

Overview of this book

Table of Contents (17 chapters)
Blender Cycles: Materials and Textures Cookbook Third Edition
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Creating tree shaders – the leaves


In this second tree recipe, we will create the leaves shaders, as shown in the following screenshot:

The leaves as they appear in the final rendering

Getting ready

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.

How to do it...

Let's proceed with the creation of the leaves shaders:

  1. Click on the New button in the Node Editor window toolbar or in the Material window, and rename the material as leaf_alpha.

  2. 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.

  3. 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...