O'Reilly logo

WebGL Programming Guide: Interactive 3D Graphics Programming with WebGL by Rodger Lea, Kouichi Matsuda

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

This chapter focuses on lighting objects, looking at different light sources and their effects on the 3D scene. Lighting is essential if you want to create realistic 3D scenes because it helps to give the scene a sense of depth.

The following key points are discussed in this chapter:

• Shading, shadows, and different types of light sources including point, directional, and ambient

• Reflection of light in the 3D scene and the two main types: diffuse and ambient

• The details of shading and how to implement the effect of light to make objects, such as the pure white cube in the previous chapter, look three-dimensional

By the end of this chapter, you will have all the knowledge you need to create lighted 3D scenes populated ...

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