GET SCALE MATRIX

From Macros Wiki
Revision as of 13:11, 12 January 2011 by Mikeo (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Up

Command

GET_SCALE_MATRIX <matrix array>, <scale>


Get the transformation matrix required to apply a uniform 3D scale.

Parameters

<matrix array>
Name of Matrix variable
<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.