njSetConstantMaterial | Japanese
    <-|INDEX|->
Sets model material data.

### FORMAT

      #include <Ninja.h>
      void      njSetConstantMaterial( argb )
      NJS_ARGB  *argb

### PARAMETERS

argb
  material data(-1.0f to +1.0f)

### RETURN VALUE

  None

### ERROR VALUE

  None

### FUNCTION

- Specifies a model's material data.
- The material data becomes valid when NJD_CONTROL_3D_CONSTANT_MATERIAL or NJD_CONTROL_3D_OFFSET_MATERIAL is specified by njControl3D.
- When NJD_CONTROL_3D_CONSTANT_MATERIAL is specified, the model is drawn with the specified material data. When NJD_CONTROL_3D_OFFSET_MATERIAL is specified, the model is drawn after adding the specified material data to the material of the model data.
- This data is also used for color calculation when drawing sprites.

### EXAMPLE

  The model is drawn wholly transparent.

      njInitSystem( NJD_RESOLUTION_640x480, 1 );
      njInitMatrix( matrix, 128 );
      njInit3D( vbuf, 4096, abuf, zbuf, 32 );
      njInitView( &view );
      njCreateLight( &light, NJD_DIR_LIGHT );
      njSetView( &view );

      njControl3D( NJD_CONTROL_3D_OFFSET_MATERIAL );
      njSetConstantAttr( 0xFFFFFFFF, NJD_FLAG_USE_ALPHA)
      argb.a = -0.5f;
      argb.r = 0.f;
      argb.g = 0.f;
      argb.b = 0.f;
      njSetConstantMaterial( &argb );

      while(1) {
        njClearMatrix();
        njTranslate( NULL, 0.f, 0.f, -10.f );
        njRotateXYZ( NULL, xx,yy,zz );
        njDrawObject( object );
        xx += 257;
        yy += 179;
        zz += 193;
        njWaitVSync();
      }

### NOTES

### RELATED TOPICS

  njDrawModel()
  njDrawObject()
  njControl3D()
  njDrawSprite2D()
  njDrawSprite3D()

njSetConstantMaterial |
    <-|INDEX|->