Creating grapes in Cycles

We will start out by creating the material for the grapes. For this purpose, we will be using an OSL (Open Shading Language) that we also used in Chapter 7, Car Rendering in Cycles, to realistically layer different shaders. The plugin is the PYLA and you can find it in Chapter 7 files.

Getting ready

Let's select the grape mesh and add a new material to it. Name it Grapes. Then let's move to the material node editor.

How to do it…

  1. Let's add a SubsurfaceScatter BSDF node. Set the mode to Compatible, Color to RGB 0.66, 0.68, 0.12, and the Scale value to 0.6. Also, set the Radius value to 0.6, 0.7, 0.3.
  2. Add a Diffuse BSDF node and a Glossy BSDF node, mix them using a Mix Shader node, and make sure the Glossy BSDF node is plugged ...

Get Blender Cycles: Lighting and Rendering Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.