270

Lighting the environment
Summary

  • Java 3D provides four types of lights:
  • AmbientLight
  • DirectionalLight
  • PointLight
  • SpotLight
  • All lights have a color, can be turned on/off, and have influencing bounds and a scope list

  • Directional lights have an aim direction

  • Point lights have a position and attenuation

  • Spot lights have an aim direction, position, attenuation, and a cone spread angle and concentration