Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "A Unity package is a single file that contains various Assets that can be used in Unity in a similar manner to a .zip file."

A block of code is set as follows:

Properties {  _MainTex("Texture", 2D) = "white" }

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

void surf (Input IN, inout SurfaceOutputStandard o) {  // Use the tint provided as the base color for the material  o.Albedo = _MainTint; // Get the normal ...

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.