In this recipe, we will create a generic grass shader using grass leaves meshes instanced on a particle system, as shown here:
Start Blender and open the 1301OS_07_grass_start.blend
file, where there is an already set scene with an emitter plane working as light source, an uneven plane to perform the ground, and several grass leaves objects grouped and instanced on the ground plane by a particle system.
Let's start by assigning a ground material to the ground plane and with the creation of the grass shader working on the grass blades meshes to be instanced:
Select the ground plane and click on the New button in the Node Editor window's header or in the Material window to the right. Rename the material as
ground
and set the Color value of the Diffuse shader to R 0.141, G 0.082, B 0.031.Select one of the grass leaves objects and again click on the New button in the Node Editor window's header or in the Material window to the right. Rename the...