Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Graphics and Sound / 3D Options  /
Lighting

  • Lighting is an option for Graphics3D and related functions that specifies whether to use simulated illumination in three-dimensional pictures.
  • Lighting -> True uses simulated illumination. The ambient light level is specified by the option AmbientLight. The option LightSources gives the positions and intensities of point light sources.
  • Lighting -> False uses no simulated illumination. In SurfaceGraphics, polygons are then shaded according to their height, or according to the ColorFunction option that is given.
  • See the Mathematica book: Section 1.9.7, Section 1.9.7, Section 2.9.9Section 2.9.12.
  • See also: Shading, ColorFunction, SurfaceColor.

    Further Examples

    The first plot uses the default setting (True) for Lighting; the second turns the lighting off and uses a color function.

    Evaluate the cells to compare the graphics.

    In[1]:=

    In[2]:=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.