Description
Initializes a
Texture Matrix from a Matrix. The
upper left 2x2 matrix defines rotation and scaling. The top two
elements of the last column define translation.
Syntax
Parameters
Example
Shows the format of
the Matrix parameter when creating a texture matrix.
| [C#] |
Copy Code
|
Array transformationArray = new object[]
{
1.0, 0.0, 0.0,
1.0, 0.0, 0.0
};
surfaceMesh.TextureMatrix = sceneManager.Initializers.TextureMatrix.InitializeWithAffineTransform(
ref transformationArray);
|
|
Shows the format of
the Matrix parameter when creating a texture matrix.
| [Visual Basic .NET] |
Copy Code
|
Dim
transformationArray As Array = New
Object() {1, 0, 0, 1, 0, 0}
surfaceMesh.TextureMatrix =
sceneManager.Initializers.TextureMatrix.InitializeWithAffineTransform(transformationArray)
|
|
See Also