DoDiffuseColor(3D)

NAME
DoDiffuseColor - Create a diffuse color primitive attribute object

SYNOPSIS
C:
DtObject DoDiffuseColor(colormodel, color)
DtColorModel colormodel;
DtReal color[];

FORTRAN:
INTEGER*4 DODIFC(COLMOD, COLOR)
INTEGER*4 COLMOD
REAL*8 COLOR(*)

DESCRIPTION
DoDiffuseColor creates a diffuse color primitive attribute using the color model specified by colormodel. The color parameter specifies the diffuse response of a surface to light.

Diffuse reflectance is the response of a surface to incident (i.e., non-ambient) light where the emitted light is scattered equally in all directions. The diffuse color of a surface is often thought of as the base color. As such, the diffuse color is also used for determining the color of the ambient component of a surface.

The diffuse color is one of three aspects of the diffuse component of a surface. The other two components are DoDiffuseIntens <DODIFI> and DoDiffuseSwitch <DODIFS>.

DEFAULTS
The default DoDiffuseColor is (DcRGB, (1.0, 1.0, 1.0)).

SEE ALSO
DoDiffuseIntens(3D), DoDiffuseSwitch(3D), DoAmbientIntens(3D), DoAmbientSwitch(3D)