lightsrc lightsrc_id [ on | off ]
lightsrc lightsrc_id [ on | off ] ambient color
lightsrc lightsrc_id [ on | off ] directional color direction
lightsrc lightsrc_id [ on | off ] eye color [direction]
An integer ranging from 1 to 8 denoting which light source to define.
This specifies that the light source should be activated.
This specifies that the light source should be deactivated.
This light source type has no direction.
This is a light source that stays fixed to the model.
This is a light source that stays fixed to the viewer.
This can be either a color name Color Names or a red, green, blue triple.
This is an x, y, z triple describing the direction in which the light source is facing.
Define light source properties for 3D plots. There are two lights (numbers 1 and 2) set by default. They are both directional and are facing <1.4, 1.0, 0.7> and <-1.4, -1.0, -0.7>. Both are white lights.
An ambient light is used to provide a background level of illumination so that unlit areas are not completely black. A directional light will always shine on the same spot on the model. An eye light is one which is fixed relative to the viewer's (window's) position in space. When no direction is specified for an eye light, it defaults to <0 0 -1>, which is directly into the screen.
lightsrc 1 ambient 0.2 0.2 0.2
lightsrc 6 on directional white 1 0 0