DoDiffuseSwitch(3D) — Stardent Computer Inc. (\*(Dd)
NAME
DoDiffuseSwitch − Create a diffuse switch primitive attribute object
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 non-ambient 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 29, 2021