How it works...

From Shader Graph, we are introduced to the first nodes we have encountered. Of note is the PBR Master section on the screen. This is where all of the information about the shader will go to. You may notice that the properties are very similar to the regular Standard Shader we've used in the past, and we can modify the properties in a similar manner now, but we can also create additional nodes and connect them together to create unique effects.

The Sample Texture2D node allows us to give the Texture property as an input and then give the data from it as an RGBA output on the right-hand side (things on the right side of a node are outputs while things on the left side are inputs, such as the Albedo property on the PBR Master ...

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.