njSetLightAlpha | Japanese
    --|INDEX|->
Sets the changes of alpha against material, whose light is set by njCreateLight.

### FORMAT

      #include <Ninja.h>
      void njSetLightAlpha( *ptr, rate )
      NJS_LIGHT *ptr
      Float rate

### PARAMETERS

*ptr
  light pointer
rate
  magnification

### RETURN VALUE

  None

### ERROR VALUE

  None

### FUNCTION

- Sets the changes of transparency (alpha) produced by specular.
- Shows the change that as the light specular luminance increases, the material alpha value decreases (be more opaque).
- Argument default value, which is set by CreateLight, is 0 (no reflection). The argument should be set with magnification against the specular luminance (specular luminance x magnification).
- The result will be added to the material alpha value.

### EXAMPLE

      #include
      ...........

      NJS_LIGHT light;

      njInitSystem();
      njCreateLight(&light, NJD_DIR_LIGHT);
      ...........
      /* Decreases the alpha by 0.5 of specular luminance. */
      njSetLightAlpha(&light, 0.5f);

### NOTES

- Light must be specified by njCreateLight.
- If it is specified by either njFastDrawModel, njFastDrawObject, njFastDrawMotion, or njFastAction, this function has no effect.

### RELATED TOPICS

  njCreateLight()

njSetLightAlpha |
    --|INDEX|->