Beginning 3D Game Programming

Chapter 23. Understanding the High-Level Shader Language

A couple of chapters ago, I briefly introduced the High-Level Shader Language (HLSL), and you even got to write some basic vertex and pixel shaders using it. However, I scratched only the surface of this amazing technology. There are entire books dedicated to understanding the intricacies of the language and writing amazing shaders.

Because this book is only a beginner's book, an exhaustive look at this technology isn't feasible, but you should get a little more information on the subject to help you write the great games of the future.

In this chapter, you'll learn

  • Why you should fully understand HLSL

  • How to update lighting code to add specular highlights

  • How to implement per-pixel lighting

Категории