5. Your First Unity Lighting Shader
Claudia Doppioslash1
(1)Liverpool, Merseyside, UK
In the previous chapters, we introduced the shader editing workflow, got started with the simplest possible shader, and explained the graphics pipeline and the role of coordinate space transformations in it.
This chapter gets started on the main topic of this book: lighting. There is an infinite variety of shaders that you can write, without ever needing to worry about lighting. But the heart of this book is lighting calculations and how they help making your game look great and distinctive. To get started, we’ll take the