Stores an 'M' x 'N' matrix inside a program constant. The upper left matrix of size RowCount x ColumnCount is taken from the parameter 'Value'.
int32 SetProgramConstantMatrixMxN( int32 p_nHandle, int32 p_iIndex, Matrix value, int32 RowCount, int32 ColumnCount )
Parameter Type | Parameter Name | Documentation |
---|---|---|
int32 | p_nHandle | The handle to the shader program. This can be acquired by calling the <Program> object's GetHandle() data interface.. |
int32 | p_iIndex | The index of the constant whose value is to be set. This value is typically retrieved using the GetProgramConstantIndex function. |
<Matrix> | value | A matrix to store in the constant. |
int32 | RowCount | The number of rows in the matrix to store. |
int32 | ColumnCount | The number of columns in the matrix to store. |
None published. Please look for an example in the Scenome Scripting Language code base.