DoDiffuseSwitch(3D) — Kubota Pacfic Computer Inc. (\*(Dd)
NAME
DoDiffuseSwitch − Create a primitive attribute object for enabling or disabling use of the diffuse component of a surface’s response to light
SYNOPSIS
C:
DtObject DoDiffuseSwitch(switchvalue)
DtSwitch switchvalue;
FORTRAN:
INTEGER∗4 DODIFS(SWVAL)
INTEGER∗4 SWVAL
DESCRIPTION
DoDiffuseSwitch creates a diffuse switch primitive attribute. The switchvalue parameter is used to specify whether or not the surfaces of subsequent primitive objects have a diffuse component in their responses to light from incident light sources in the environment.
The diffuse switch determines whether diffuse attributes will be used. If the switchvalue is DcOff <DCOFF>, the primitive object will render itself without diffuse shading. If the switchvalue is DcOn <DCON>, the primitive object will render itself using the diffuse attributes whenever possible.
The diffuse switch is one of three aspects of the diffuse component of a surface. The other two components are the DoDiffuseColor <DODIFC> and the DoDiffuseIntens <DODIFI>.
DEFAULTS
The default for DoDiffuseSwitch is DcOn <DCON>.
SEE ALSO
DoDiffuseColor(3D), DoDiffuseIntens(3D)
September 02, 1992