njSetLightDirection | Japanese
    <-|INDEX|->
Sets the directrion of light defined by njCreateLight.

### FORMAT

      #include <NINJA.H>
      void njSetLightDirection( *ptr, dx, dy, dz )
      NJS_LIGHT *ptr
      Float dx
      Float dy
      Float dz

### PARAMETERS

*ptr
  light pointer
dx
  x coordinate of light source
dy
  y coordinate of light source
dz
  z coordinate of light source

### RETURN VALUE

  None

### ERROR VALUE

  None

### FUNCTION

- Sets the direction of the light beam as vector components. (The default direction is that of the z axis.)

### EXAMPLE

      #include <NINJA.H>
      ...........

      NJS_LIGHT light;

      njInitSystem();
      njCreateLight(&light, NJD_DIR_LIGHT);
      ...........
      /* Set direction vector of parallel light source beam to (1,0,0) */
      njSetLightDirection(&light, 1.f, 0.f, 0.f);

### NOTES

- Before using this function, the light source must first be defined using njCreateLight.
- The vector set is normalized.

### RELATED TOPICS

  njCreateLight()

njSetLightDirection |
    <-|INDEX|->