# NNS_G3dGlbMaterialColorDiffAmb

## Syntax

      #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 material diffuse reflection color (`diffuse`) and ambient reflection color (`ambient`) of 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 this 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

2004/08/02 Initial version.

CONFIDENTIAL