light_ambient(3G)
NAME
light_ambient − define ambient light color
SYNOPSIS
C Syntax:
void light_ambient(fildes,red,green,blue);
int fildes;
float red,green,blue;
FORTRAN77 Syntax:
subroutine light_ambient(fildes,red,green,blue)
integer*4 fildes
real red,green,blue
Pascal Syntax:
procedure light_ambient(fildes:integer;red,green,blue:real);
DESCRIPTION
Input Parameters
fildes Integer file descriptor returned by gopen when an I/O path to a graphics device is opened.
red, green, blue Values (in the range of 0.0 to 1.0) that define the ambient light color.
Discussion
Light_ambient specifies the color of the ambient light that is to be used when shading filled polygons (light_switch is used to enable or disable ambient lighting).
DEFAULTS
White ambient light (r=1.0, g=1.0, b=1.0)
SEE ALSO
light_model(3G), light_source(3G), light_switch(3G), shade_mode(3G), surface_model(3G), vertex_format(3G), Starbase Graphics Techniques.
Hewlett-Packard Company — HP-UX Release 9.03: April 1994