More on lights: positional lights

Before we finish the chapter, let's revisit the topic of lights. So far we have assumed that our light source is infinitely far away from the scene. This assumption allows us to model the light rays as being parallel to each other. An example of this is sunlight. These lights are called directional lights; now we are going to consider the case where the light source is relatively close to the object that it is going to illuminate. Think, for example, of a lamp desk illuminating the document you are reading. These lights are called positional lights.

More on lights: positional lights

As we experienced before, when working with directional lights, ...

Get WebGL Beginner's Guide 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.