Applying lighting
When discussing ways to process lighting in a game, there are two main ways we can do so, known as Forward Rendering and Deferred Rendering. Both handle lighting in a different order, with different techniques, requirements, pros, and cons. Forward Rendering is usually recommended for performance, while Deferred Rendering is usually recommended for quality. The latter is used by the High Definition Render Pipeline of Unity, the Renderer used for high-quality graphics in high-end devices. At the time of writing this book, Unity is developing a performant version for URP. Also, in Unity, Forward Renderer comes in two flavors: Multi-Pass Forward, which is used in the built-in Renderer (the old Unity Renderer), and Single-Pass Forward, which is used in URP. Again, each has its pros and cons.
Important information
Actually, there are other options available, both official and third-party, such as Vertex Lit, but for now, we will focus on the three main ones –...