##### Ninja Library - Light Function

# njMultiLightMatrix

Multiplies a specified matrix by a light matrix

### FORMAT

`

  void njMultiLightMatrix( *ptr, *m )
  NJS_LIGHT *ptr
  NJS_MATRIX *m

`

### PARAMETER

  `*ptr` | Pointer to light source
  `*m` | Pointer to matrix

### RETURN

  None

### DESCRIPTION

  Multiplies matrix specified by user with light source matrix registered by `njCreateLight()` function. Light source's position and direction are calculated.

### EXAMPLE

      #include <Shinobi.h>
      	:
      NJS_LIGHT light
      NJS_MATRIX m
      sbInitSystem( NJD_RESOLUTION_VGA, NJD_FRAMEBUFFER_MODE_RGB565, 1);
      njCreateLight(&light, NJD_POINT_LIGHT);
      	:
      njClearMatrix();
      /* Multiply matrix m */
      njMultiLightMatrix(&light, &m);

### NOTE

  Light source needs to be specified by `njCreateLight()` and `njClearMatrix()` needs to be called beforehand. Scale factor cannot be attached to the matrix. The order of multiplication is:

  njMultiMatrix((light source), (user's specified matrix)); |

### REFERENCE

  `njMultiMatrix()
  njCreateLight()
  `

njMultiLightMatrix

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999