FORMAT
-
#include <NINJA.H>
void njMultiLightMatrix( *ptr, *m )
NJS_LIGHT *ptr
NJS_MATRIX *m
PARAMETERS
- *ptr
- light pointer
- *m
- matrix pointer
RETURN VALUE
-
None
ERROR VALUE
-
None
FUNCTION
- Multiplies a light matrix defined with njCreateLight by another matrix specified by the user. This results in calculation of the light source position and direction.
EXAMPLE
-
#include <NINJA.H>
...........
NJS_LIGHT light;
NJS_MATRIX m;
njInitSystem();
njCreateLight(&light, NJD_POINT_LIGHT);
...........
njClearMatrix();
/* Multiply by matrix m */
njMultiLightMatrix(&light, &m);
NOTES
- Before calling this function, the light to be modified must be specified by njCreateLight and njClearMatrix must be called.
- Also, do not apply any scaling factor to the matrix.
- The order of multiplication is as follows.
njMultiMatrix( light matrix , user-specified matrix );
RELATED TOPICS
-
njMultiMatrix()
njCreateLight()