O'Reilly logo

Build Your Own 2D Game Engine and Create Great Web Games: Using HTML5, JavaScript, and WebGL by Jason Pace, Fernando Arnez, Jebediah Pavleas, Kelvin Sung

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 8

image

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required