CHAPTER 8
Implementing Illumination and Shadow
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 ...
Get Build Your Own 2D Game Engine and Create Great Web Games: Using HTML5, JavaScript, and WebGL 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.