GsSetLightMatrix

Sets the light matrix

void GsSetLightMatrix (
        MATRIX *mp
)

Arguments

mp Pointer to a local screen light matrix

Return Value

None.

Explanation

The local screen light matrix pointed to by mp is multiplied by the matrix of three light vectors and the result is set as the light matrix in GTE.
The light matrix needs to be set in GTE prior to performing light source calculations.
Depending on the type of model data, the GsSortObject4() function may perform light source calculation at the time of execution. In this case, the light matrix needs to be preset using GsSetLightMatrix().
The matrix mp specified as the argument to GsSetLightMatrix() is normally a local world matrix.

See Also

GsSortObject4(), GsGetLw(), MATRIX