AmbientLight

Ambient light is an option for SurfaceGraphics and Graphics3D.  The default setting of this option is (AmbientLightGrayLevel[0] ) which produces no ambient light.  The setting of AmbientLight must be a Hue, GrayLevel or RGBColor directive. The setting specifies that a certain color of lighting should be illuminating the graphics from every direction. Consider the next example where the cube has a green light source from above, and a blue light source from the right, and red ambient light.  Here the ambient light simulates red lighting all over the cube. The green light source combines with the red ambient light to make the top of the cube yellow.  Also the blue light source combines with the red ambient light to make the right side purple.

RowBox[{RowBox[{RowBox[{sources, =, RowBox[{{, RowBox[{RowBox[{{, RowBox[{{0, 1, 0}, ,, RowBox ...  , LightSourcessources, ,, AmbientLightRGBColor[1, 0, 0]}], ]}], ]}], ;}]


Created by Mathematica  (May 16, 2004)

Back to Ted’s Tricks index page