GET SCALE MATRIX

From Macros Wiki
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.