Getting ready

In order for this recipe to work, you will need a texture that shows how you wish to have your fur displayed:

I have provided two examples in Chapter 11 | Textures folder with the book's example code (Faux Fur and panda).

Like all the other shaders before, you will need to create a new Standard Surface Shader (Fur) and a material (FurMat) to host it, and attach it to a sphere for demonstration purposes:

Get Unity 2018 Shaders and Effects 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.