-
Book Overview & Buying
-
Table Of Contents
Unity 6 Shaders and Effects Cookbook - Fifth Edition
By :
Surfaces were introduced in Chapter 2, Creating Your First Shader with Shader Graph. This chapter explores them in greater depth. Creating a shader using surface inputs involves two key steps:
First, you have to specify certain physical properties of the material that you want to describe with characteristics like diffuse color, smoothness, and transparency using Shader Graph nodes (e.g., Color, Smoothness, and Alpha).
Secondly, the output from these nodes is connected to the Master Stack. The Master Stack processes these properties based on the lighting model and graph settings, determining how the material interacts with light.
Mastering surface materials is essential for creating visually compelling and optimized shaders in Unity. By effectively using Shader Graph, you can enhance visual quality and immersion in your projects.
We’ll start with a simple matte material and progress to holographic projections.
In this chapter, we will...