# NNS_G3dGlbMaterialColorDiffAmb

## C Specification

      #include <nnsys/g3d/glbstate.h>

      void
      NNS_G3dGlbMaterialColorDiffAmb(
      GXRgb diffuse,
      GXRgb ambient,
      BOOL IsSetVtxColor
      );

## Arguments

diffuse | Diffuse reflection color
ambient | Ambient reflection color
IsSetVtxColor | Vertex color set flag

## Return Values

None.

## Description

This function configures the diffuse color and the ambient color of the material in the global state kept inside the G3D library. One of two options can be chosen for the vertex color set flag—not setting the vertex color (`FALSE`), or setting a diffuse color as the vertex color (anything other than `FALSE`). The configuration performed with the API will be applied to the model if using either the `NNS_G3dMdlUseGlbDiff` function or the `NNS_G3dMdlUseGlbAmb` function.

## See Also

`NNS_G3dGlbMaterialColorSpecEmi`

## Revision History

08/02/2004 Initial version.