O'Reilly logo

Learning Three.js: The JavaScript 3D Library for WebGL by Jos Dirksen

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

Summary

That was a lot of information about the different kinds of lights that are available in the Three.js library. The most important things to remember from this chapter are the following:

  • Configuring the lights, colors, and shadows is not an exact science. Experiment with it; use a dat.GUI control to fine-tune your configuration.
  • An AmbientLight source color is added to each and every color in the scene. It has no position. Usually this light is used to smooth hard colors and shadows.
  • A PointLight source doesn't create shadows and emits light in all directions. You can compare this light with a flare in the night sky.
  • A SpotLight is a light that resembles a flash light. It has a conical shape and can be configured to fade over distance. A SpotLight ...

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