After completing this chapter, you will be able to:
Understand the parameters of simple illumination models
Define infrastructure supports for working with multiple light sources
Understand the basics of diffuse reflection and normal mapping
Understand the basics of specular reflection and the Phong illumination model
Implement GLSL shaders to simulate diffuse and specular reflection and the Phong illumination model
Create and manipulate point, directional, and spotlights
Simulate shadows with the WebGL stencil buffer
Introduction
Up to now in your game engine you have implemented mostly functional ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.