GET SCALE MATRIX: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
| Line 7: | Line 7: | ||
===Example=== | ===Example=== | ||
:GET_SCALE_MATRIX | :GLOBAL MAT1(12) | ||
:GET_SCALE_MATRIX MAT1, 0.5 | |||
<br> | |||
This will get a matrix to reduce to half size. | |||
[[Category:Matrices]] | [[Category:Matrices]] | ||
Revision as of 22:51, 26 July 2010
Command
- GET_SCALE_MATRIX <matrix array>, <scale>
- Set an array variable to the transformation matrix required to apply a uniform 3D scale.
Parameters
- <matrix array>
- A transformation matrix contains 12 values. These are stored in an array variable that must be defined to hold at least 12 values. If the array variable is defined with a size of more than 12, the first 12 values are used for the transformation matrix.
- <scale>
- The scale factor to be applied. 1 would be no scale, 0.5 half scale, 1.5 increase by 50%.
Example
- GLOBAL MAT1(12)
- GET_SCALE_MATRIX MAT1, 0.5
This will get a matrix to reduce to half size.