How to | Change the Lighting of Plots
You can enhance the appearance of 3D graphics in
Mathematica by changing the direction and color of plot lighting.
Lighting, an option for
Graphics3D and related functions, can be combined with other functions and options to yield customized high-quality graphics.
First, create a sphere with no options set:
| Out[1]= |  |
The default setting for
Lighting is
Automatic:
| Out[2]= |  |
Here, the explicit settings for
Automatic are shown:
| Out[3]= |  |
Use white light sources by setting the
Lighting to neutral:
| Out[3]= |  |
Here, the explicit settings for

are shown:
| Out[4]= |  |
| Out[4]= |  |
Send blue light from the point with coordinates

:
| Out[5]= |  |
Send blue and green lights from two different points:
| Out[6]= |  |
Ambient lighting is applied from all directions:
| Out[7]= |  |
Add blue light from a point:
| Out[8]= |  |
Send green light along a vector specified with two points:
| Out[9]= |  |
Specify a blue spotlight by its position of origin, its target position on the object, and its half-angle:
| Out[2]= |  |
Use lighting in a 3D plot:
| Out[3]= |  |
Change the position of the spotlight to obtain different views of an object:
| Out[12]= |  |
Manipulate the lighting position on a sphere: