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
See Also
Example
Shows the format of the Matrix parameter when creating a texture matrix.
| [C#] |
|---|
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] |
|---|
Dim transformationArray As Array = New Object() {1, 0, 0, 1, 0, 0}
surfaceMesh.TextureMatrix = sceneManager.Initializers.TextureMatrix.InitializeWithAffineTransform(transformationArray)
|
|