Table of Contents
Preface
Part 1: Creating Shaders in Unity
1
Re-Coding a Basic Blinn-Phong Shader with Unity/CG
Technical requirements
Doing a quick study of the Blinn-Phong shading model
Using diffuse lighting for a basic render
Better integrating the object – thanks to ambient lighting
Adding some light reflections with a specular
Setting up our shader in Unity
Checking your project configuration
Creating the shader file
Implementing the diffuse lighting
Adding the ambient and specular components
Injecting the ambient lighting
Computing the specular lighting
Making a top-notch inspector!
Why should I waste time refining an editor inspector?
Faking Booleans?
Improving our glossiness display
A few additional tricks
Summary
Going further
Part ...
Get Become a Unity Shaders Guru 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.