O'Reilly logo

jMonkeyEngine 3.0 Cookbook by Rickard Edén

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

Lighting your world and providing it with dynamic lights

This recipe will mostly be theories on different lighting types, but we'll also explore a way to easily control the movement of lights.

The four main types of lights that we can use to light up our world are as follows:

  • Ambient Light: This lights up everything in the scene evenly. It's good for avoiding anything to be in a pitch-black state, but it doesn't create any shadows or nuances. Adding a too bright ambient light will give the world a bland look, while giving it a touch of color can set the mood.
  • Directional Light: This shines from a particular direction with perfectly parallel rays and without any falloff. This is usually used to simulate a sun, a bright source of light located far ...

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